Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Opening Multiple Workbooks

I am new to VBA.
I am trying to open Multiple Workbooks that reside on a networked server.
The first book opens and my macro stops.
I do not have a problem when opening multiple books on my local C drive.

My code looks like below:

ChDir "Q:\MIS\ICSS\ICSSreports"
Workbooks.Open Filename:= _
"Q:\MIS\ICSS\ICSSreports\CSCMthly.xls"
Workbooks.Open Filename:= _
"Q:\MIS\ICSS\ICSSreports\CSCMnthly1.xls"

Any suggestions for problem isolation would be appreciated.
Mitch
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Opening Multiple Workbooks

Mitch,

The ChDir as you have it coded will not change the default drive.
If you're running this from the C: drive on your pc, it's quite possible
that you have a file named CSCMthly.xls on that drive but you don't
have CSCMthly1.xls

Anyway, to change the drive, use the following:
ChDrive = "Q"

John

MISMitch wrote:

I am new to VBA.
I am trying to open Multiple Workbooks that reside on a networked server.
The first book opens and my macro stops.
I do not have a problem when opening multiple books on my local C drive.

My code looks like below:

ChDir "Q:\MIS\ICSS\ICSSreports"
Workbooks.Open Filename:= _
"Q:\MIS\ICSS\ICSSreports\CSCMthly.xls"
Workbooks.Open Filename:= _
"Q:\MIS\ICSS\ICSSreports\CSCMnthly1.xls"

Any suggestions for problem isolation would be appreciated.
Mitch


Reply
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
Opening multiple excel workbooks at once Bill Excel Discussion (Misc queries) 0 March 6th 10 01:12 AM
Opening new workbooks Falcon248 Excel Discussion (Misc queries) 0 January 22nd 10 07:09 PM
Opening multiple workbooks in Excel bdigs Excel Discussion (Misc queries) 3 February 21st 08 02:35 AM
Opening Multiple Workbooks SJT Excel Discussion (Misc queries) 1 June 6th 06 06:32 PM
Opening multiple workbooks in separate screens CS043 New Users to Excel 3 January 10th 06 02:39 PM


All times are GMT +1. The time now is 05:44 PM.

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

About Us

"It's about Microsoft Excel"