LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Opening filenames from a list in a spreadsheet


I am writing a program for use at a bunch of sites around the world. I
uses several SAP extracts that are to be stored on the C: drive of th
user in a specific location, in this case

C:\CABD\CABD.xls

Putting the Workbooks.Open Filename statement is easy enough when it i
always one location but several of the files will require having
location that varies by site. I do not want to have to redo the cod
for each site and each site has a different directory name (ex. Y: o
Q:). I know I need to use a string but am new to the world of strings
I am not sure no the syntax necessary to make this work. Can any o
you experts out there point me in the right direction. The incorrec
code is stated below...

Dim CWDBXLS
CWDBXLS = '[CABD.xls]Local Data Copy!R46C5
Workbooks.Open Filename:=CWDBXL

--
crone
-----------------------------------------------------------------------
croney's Profile: http://www.officehelp.in/member.php?userid=598
View this thread: http://www.officehelp.in/showthread.php?t=131874

Posted from - http://www.officehelp.i

 
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
Re-sort list when opening spreadsheet kevlar3d Excel Discussion (Misc queries) 3 February 22nd 06 07:03 PM
Help with opening variable filenames MacroProblems Excel Programming 3 February 15th 06 09:16 PM
Error opening files from a list in a spreadsheet Anolan Excel Programming 2 November 28th 05 02:21 PM
Getting a list of filenames Tom Ogilvy Excel Programming 3 April 13th 05 04:31 PM
Getting a list of filenames Bernie Deitrick Excel Programming 0 April 13th 05 02:55 PM


All times are GMT +1. The time now is 10:02 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"