AndrewWalker
New Member
- Joined
- Oct 8, 2012
- Messages
- 4
Hi All,
I'm running a very simple Excel macro to go back to the menu screen of the file. There are several worksheets in the file, and all have a Home button (just a rectangle with assigned macro)
Sub Button_Home()
Sheets("HOME").Select
End Sub
But, strangely, if the view is set to Page Layout, when the rectangle is clicked Excel crashes.
Has anyone come across this before and have a solution?
Cheers,
Andrew
I'm running a very simple Excel macro to go back to the menu screen of the file. There are several worksheets in the file, and all have a Home button (just a rectangle with assigned macro)
Sub Button_Home()
Sheets("HOME").Select
End Sub
But, strangely, if the view is set to Page Layout, when the rectangle is clicked Excel crashes.
Has anyone come across this before and have a solution?
Cheers,
Andrew