TheRedCardinal
Board Regular
- Joined
- Jul 11, 2019
- Messages
- 243
- Office Version
- 365
- 2021
- Platform
- Windows
I have a Sub routine (thanks to prior help) that performs a set of tasks on a worksheet when the user closes it. There are 90 possible sheets.
On each sheet are three tables, but the way they have been created means their names are not predictable.
They are always in the same place. Top left cell of the header row is A5, L5 and S5 respectively.
How can I assign them to objects in my macro, so that I can manipulate them correctly. Specifically, I will want to clear the Data of each and write back the results of an Array calculation from my Macro. I also want to highlight some rows etc.
Could I allocate them to ListObjects my reference to location?
Thanks!
On each sheet are three tables, but the way they have been created means their names are not predictable.
They are always in the same place. Top left cell of the header row is A5, L5 and S5 respectively.
How can I assign them to objects in my macro, so that I can manipulate them correctly. Specifically, I will want to clear the Data of each and write back the results of an Array calculation from my Macro. I also want to highlight some rows etc.
Could I allocate them to ListObjects my reference to location?
Thanks!