I went ahead and created the macro and looked at the code. I found that .select was being used to accomplish this. however, using that I am still getting the same issue in my vba code.
This:
Code:
Set xls = xlw.worksheets.Add
xls.Name = "Page" & pageNum
xls.select
is not getting the job done.
On a side note, I'm noticing that the sheets are added to the left of each existing sheet. How would I make it go the other way. For example, currently:
Sheet1
Sheet2 Sheet1
Sheet3 Sheet2 Sheet1
I want:
Sheet1
Sheet1 Sheet2
Sheet1 Sheet2 Sheet3
Thanks again.