ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Automation (error 1004) (https://www.excelbanter.com/excel-programming/356311-automation-error-1004-a.html)

Nicole Seibert

Automation (error 1004)
 
I need a surefire way to setup a macro to be re-run (a thousand times even).
I have tried to delcare ap, workbook, and worksheet as variables and then
insert xlsheet before all necessary lines; however, it never works right.

Then I get other errors and I end up rewriting about a 1/3 of my code.

What are some really good ways for setting up a macro for automation that
you have discovered?


All times are GMT +1. The time now is 06:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com