OldSwimmer1650
New Member
- Joined
- Dec 3, 2020
- Messages
- 38
- Office Version
- 365
- Platform
- Windows
After a VBA macro run (runs every 1min) the macro stops and leaves me on a tab(one that I specified in the VBA code, call it "SummaryPage") but instead of being at cell A1(upper left corner) I'm many cells & columns off in blank cell space. If I select another tab then select the tab "SummaryPage" it places cell A1 in upper left corner.
When the code starts I save the name of the sheet I'm on
Currentsheet = ActiveSheet.Name 'this is sheet I'm currently on
The last lines of code
Sheets(Currentsheet).Select
Application.GoTo reference:=Range("A1"), scroll:=True
Range("a1").Select
Currentsheetcell.Activate
When the code starts I save the name of the sheet I'm on
Currentsheet = ActiveSheet.Name 'this is sheet I'm currently on
The last lines of code
Sheets(Currentsheet).Select
Application.GoTo reference:=Range("A1"), scroll:=True
Range("a1").Select
Currentsheetcell.Activate