Changing Output Path

simonc1978

New member
Local time
Today, 09:56
Joined
May 9, 2011
Messages
4
I have a macro that contains a few ExportWithFormatting commands. What I'd like to do is change the output path so that it doesn't reference a particular drive letter but chooses the current directory that the database is in. So instead of saying H:\{foldername}\{filename.xls} I'd like it to say something like CurrentPath/{filename.xls}

TIA,

Simon
 
Try

Environ("path")

This will give the the entire location so maybe use a left statement
 

Users who are viewing this thread

Back
Top Bottom