AvoidingVBA
New Member
- Joined
- Dec 15, 2021
- Messages
- 7
- Office Version
- 365
- Platform
- Windows
I'm working on a template that allows me to repeatedly copy the initial worksheet (e.g. sheet 1) and have multiple worksheets in a single file. I do repetitive data entry/manipulation and a system like this is key. I have a variety of macros I use for this workbook, some assigned to buttons and others live in the ribbon. All of these are recorded since I'm unfamiliar with VBA.
I have a macro that creates a custom sort list for my data, since copying a worksheet doesn't also copy custom sort/filter settings. The problem is when I run the macro on any worksheet except the initial one (e.g. sheet 1(1)), it still sorts on the first worksheet, not the current worksheet. Does anyone know what causes this? Is there a step I can take in recording to prevent this?
Thanks
I have a macro that creates a custom sort list for my data, since copying a worksheet doesn't also copy custom sort/filter settings. The problem is when I run the macro on any worksheet except the initial one (e.g. sheet 1(1)), it still sorts on the first worksheet, not the current worksheet. Does anyone know what causes this? Is there a step I can take in recording to prevent this?
Thanks