I am generating an Excel spreadsheet in Microsoft Access. I am trying to set split panes with the following code:
This works fine the first time I use it, but thereafter it yields a "Object variable or With block variable not set" error message. I have to shut down and restart Access before it works again.
Code:
ActiveWindow.SplitColumn = 2
ActiveWindow.SplitRow = 0
ActiveWindow.FreezePanes = True
This works fine the first time I use it, but thereafter it yields a "Object variable or With block variable not set" error message. I have to shut down and restart Access before it works again.