View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
merlin63 merlin63 is offline
external usenet poster
 
Posts: 1
Default Paths when working with macros

Greetings,

I recently recorded a macro that I use to import data from the sam
directory that my spreadsheet resides in. After recording, the macr
gives the full path to the spreadsheet and the Microsoft Acces
database that I am using (i.e. C:\Stuff\Morestuff\myspreadsheet.xls).

This prevents me from simply moving the files to another computer t
use, since the other computer may not be running the import in the sam
location on the hard drive.

How do I tell the spreadsheet not go to a specific directory and jus
look for the files it needs in the same directory that the origina
spreadsheet resides?

Thanks

--
Message posted from http://www.ExcelForum.com