Page Setup in VBA executes very slowly, so I am accepting Bullen/Bovey/Green suggestion to use the Page.Setup Excel4 macro. My problem is, I can’t see how to use a variable in the Header.
The code looks like this:
ExecuteExcel4Macro “page.setup(“”&LCheck Log for &D &RBatch # “”,,,.25,.25,.5,.25,,true,false,false,2,1,85,,,,,,,,)”
This works, but what I want to do is include a variable after “Batch #”. I can’t seem to get any combination of quotes and ampersands to work. Am I simply SOL?
Thanks
-
Variable in Excel 4 Macro (Excel 2000)
- This topic has 2 replies, 2 voices, and was last updated 18 years, 6 months ago.
AuthorViewing 0 reply threadsAuthorViewing 0 reply threads