Afro_Cookie
Board Regular
- Joined
- Mar 17, 2020
- Messages
- 103
- Office Version
- 365
- Platform
- Windows
Is it possible to run code on sheets without selecting them before hand? Below are two examples. The top version works, but the bottom does not.
VBA Code:
'This works
Sheets("Today").Select
ActiveSheets.Range("A1").CurrentRegion.Offset(1, 0).Select
Selection.Cut
Sheets("Yesterday").select
ActiveSheets.Range("A2").Paste
'This does not work
Sheets("Today").Range("A1").CurrentRegion.Offset(1, 0).Select
Selection.Cut
Sheets("Yesterday").Range("A2").Paste