graham01
11-13-2005, 12:29 PM
this is abit hard to explain and i'm new so i'm probebly not right, but..
I have made a macro that copies a certain query to an already made spreadsheet in excel, the spreadsheet will always be in the same folder as the database itself, but if both of them are placed somewhere else then macro obviously wont work because spreadsheet wont be in the folder that the macro has been told to search in... so is it possible to tell the macro that the spreadsheet will always be in the same folder as the database but not the same directory? thats as best as i can put it..i (think i) know there is a command for it, something along the lines of "$file\<spreadsheet name>.xls" but i really dont have a clue..i hope someone can help me.
many thanks,
Graham.
I have made a macro that copies a certain query to an already made spreadsheet in excel, the spreadsheet will always be in the same folder as the database itself, but if both of them are placed somewhere else then macro obviously wont work because spreadsheet wont be in the folder that the macro has been told to search in... so is it possible to tell the macro that the spreadsheet will always be in the same folder as the database but not the same directory? thats as best as i can put it..i (think i) know there is a command for it, something along the lines of "$file\<spreadsheet name>.xls" but i really dont have a clue..i hope someone can help me.
many thanks,
Graham.