Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2008

Tip: Looking for answers? Try searching our database.

Variable File Name Activation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard - 25 Jan 2008 12:46 GMT
Hi,

When running a query from a proprietry system, the rusltant file is opened
with a name of, for example, default(1).xls

The file is opened as a temp internet file and therefore the file name could
be, for example, default(2).xls

From a file called, for example, myfile how do I activate the default file
when the default file name is variable.

Thanks in Advance
Richard
Per Jessen - 25 Jan 2008 13:08 GMT
> Hi,
>
[quoted text clipped - 10 lines]
> Thanks in Advance
> Richard

Hi Richard

You can find the filename of the file using this code after the file is
opened (and before other files are opened).

wb = Workbooks.Count
TempFile = Workbooks(wb).Name

regards,

Per
Richard - 25 Jan 2008 14:25 GMT
Fantastic thanks

> > Hi,
> >
[quoted text clipped - 22 lines]
>
> Per
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.