View Single Post
  #4 (permalink)  
Old November 21st, 2003, 05:06 AM
pgtips pgtips is offline
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Maybe its this line:
Code:
objExcel.ActiveSheet.Unprotect Password:="<<password here>>"
The code I pasted was VB and I'm pretty sure VBScript doesn't support named arguments, so change it to
Code:
objExcel.ActiveSheet.Unprotect "<<password here>>"
I'm confused though, the original would just give you a syntax error, unless you have On Error Resume Next I guess ?

hth
Phil
Reply With Quote