As a sometime creator of very simple macros, I have attached the following macro to a button on the ribbon:
Sub IBWMShowNotes()
' Macro IBWMShowNotes
' Macro Recorded Fri 24 Oct '14 by Ken
' This macro splits the screen and displays the IBWM Notes form in the lower pane
FormViewShow
DetailsPaneToggle
ViewApplyEx Name:="IBWM Notes", ApplyTo:=1
End Sub
I would like to make the button into a toggle button, so that if the screen is already split (i.e. after the macro has been run the first time), clicking the button will remove the split and leave the upper pane as a single pane. Nothing I have tried so far seems to work, which is a fair indication of my limited skills.
Any assistance would be greatly appreciated.
Ken