Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Error opening another excel file using vba

I have created a macro that opens another excel file (prices.xls) copies
several cells, closes the file and then pastes data into my original file
(estimate.xls). When prices.xls is located on my hard drive it works fine.
However when I try to put it on a server (where it needs to be in production)
I get a 'run-time error 424'. Here is the code that I use for both.

Workbooks.Open Filename:="c:\Prices.xls"
Wookbooks.Open Filename:="\\server\shared\estimating\prices.xls"

Any guidance would be greatly appreciated.
Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default Error opening another excel file using vba


Rob Moore wrote:
I have created a macro that opens another excel file (prices.xls) copies
several cells, closes the file and then pastes data into my original file
(estimate.xls). When prices.xls is located on my hard drive it works fine.
However when I try to put it on a server (where it needs to be in production)
I get a 'run-time error 424'. Here is the code that I use for both.

Workbooks.Open Filename:="c:\Prices.xls"
Wookbooks.Open Filename:="\\server\shared\estimating\prices.xls"

Any guidance would be greatly appreciated.
Thanks

here is and idea.
What about mapping a drive to the server and then trying that path..??

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
Resolve Error in opening Excel File zip file from a CD? rw5400 Excel Discussion (Misc queries) 1 March 17th 10 03:41 PM
"Unable to read file" error message when opening a Excel file that contains a PivotTable report. Tim Marsden Charts and Charting in Excel 2 October 15th 05 02:10 PM
error opening excel file jp Excel Discussion (Misc queries) 2 February 17th 05 01:12 AM
error opening excel file jp Links and Linking in Excel 1 February 16th 05 01:16 PM
Error:Invalid File format,while opening an Excel Template file Saurabh Excel Programming 1 January 17th 05 07:15 AM


All times are GMT +1. The time now is 10:09 AM.

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"