DaddyNackers
Programmer
I am trying to copy a worksheet in an excel workbook and paste it within the same workbook using VBA.
For example, I want to copy "Sheet 1" before "Sheet 8" using VBA code. Does anyone know how to do this? I am using MS Access 97.
The following code is where I am at right now (it doesn't work though)???
wBook.Worksheets("CC5_Graph"
.Copy (Sheets(i + 5))
This code gives me the following error:
"Method 'Sheets' of object '_Global' failed" err.num = '1004'
I appreciate any and all help!
Thanks,
Nackers
For example, I want to copy "Sheet 1" before "Sheet 8" using VBA code. Does anyone know how to do this? I am using MS Access 97.
The following code is where I am at right now (it doesn't work though)???
wBook.Worksheets("CC5_Graph"
This code gives me the following error:
"Method 'Sheets' of object '_Global' failed" err.num = '1004'
I appreciate any and all help!
Thanks,
Nackers