Hi
I was hoping someone could help as I have a code that works fine on one sheet but not on other worksheets. Can someone give me some advice on how I can change it so it runs in whichever worksheet I like please?
I have the following code and it works when I run it from a worksheet entitled "Active List". However I want to run it from another worksheet call "Full List" (completely unrelated worksheet but this is where I want to run all my macros from), but it comes back with a 'Run Time Error 1004 'Application Defined or Object Defined Error'.
The error is associated with the following line:
I have attached an example of my issue. You will notice 4 visible tabs.
If you press the "Run All Macros" button on the first tab entitled "Full List" you will note the error coming up. However if you turn to tab entitled "Active List" where I have that specific code only (and it relates to that tab), it works fine.
The question I have is how do I modify the code so it runs from the first tab entitled "Full List" ??(or indeed any tab).
The overall objective of the code is to extract data based on specific headings (in this case numbers) into different tabs using one macro. It works, but is having issues when I change the tab it is run from.
Hope you can help
Bookmarks