LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 155
Default Loop through files in a folder and unprotect sheets

Hi Barb,

Where should I see myname once I have put that line in?
Here are Immediate Window Contents when Set myWB = Workbooks.Open(myName) is
in yellow after the runtime error.
[auto_open] <
[SetupFunctionIDs] <
[SetupFunctionIDs]
[PickPlatform] <
[PickPlatform]
[VerifyOpen] <
[VerifyOpen] 1
[RegisterFunctionIDs] <
[RegisterFunctionIDs]
[auto_open]

I'm going to have to google immediate window 'cos i don't know what it is.

Would it help to know that myName ="" when you hover over it in the code and
that myWB = nothing? Path has the expected pathname.

I'm not sure I understand what you mean by "concatenate the path name the
you selected to the myName value" (never mind not sure, call a spade a spade,
I just don't understand :-))
--
Deirdre (finding this exciting and frustrating in equal measure!)


"Barb Reinhardt" wrote:

Put

Debug.print myName before the error and see what it gives you. It should
show the full path. If it doesn't, (and I may have forgotten that), you'll
need to concatenate the path name the you selected to the myName value.
--
HTH,
Barb Reinhardt




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pulling pdf files from general folder to specific folder [email protected] Excel Discussion (Misc queries) 2 September 8th 09 09:41 PM
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? Raven Excel Discussion (Misc queries) 1 January 24th 06 03:28 PM
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? Raven[_2_] Excel Programming 1 January 24th 06 04:23 AM
Loop thru All Files in a Folder Juan Sanchez Excel Programming 3 July 5th 04 06:38 PM
Loop through all files in a folder Fred Smith Excel Programming 4 June 7th 04 12:30 AM


All times are GMT +1. The time now is 12:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"