Ca1icoJack
IS-IT--Management
I have been trying to create some code behind a command button in a worksheet. When it is clicked it links to another sheet and collects data which it then uses to create a graph. I always get an error:
___________________________________________
Runtime Error '1004':
Application-Defined or Object-Defined Error
___________________________________________
The line of code it occurs on is just Range("X8").Select.
I'm assuming that this is because code in a sheet cannot gather data from other sheets?
If this is the case is there a way to retain a macro when copying some sheets to a new workbook? Since my code imports text files and converts them to an output sheet which is then exported.
___________________________________________
Runtime Error '1004':
Application-Defined or Object-Defined Error
___________________________________________
The line of code it occurs on is just Range("X8").Select.
I'm assuming that this is because code in a sheet cannot gather data from other sheets?
If this is the case is there a way to retain a macro when copying some sheets to a new workbook? Since my code imports text files and converts them to an output sheet which is then exported.