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 / New Users / April 2007

Tip: Looking for answers? Try searching our database.

I hate paths

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ross - 04 Apr 2007 22:06 GMT
I have prepared a spreadsheet that has a macro(recorded) in it that when
invoked, opens another excel file.
Here is that code:
Workbooks.Open Filename:= _
       "C:\Documents and Settings\Ross D\My
Documents\AURORA\jimspreada1.xls"

I plan to distribute these sheets to various other employees at my agency
for their use.  Both files will always be in the same directory -- however,
a different directory on each person's machine.  How do I change the above
code to open that file in the current directoy, whatever that directory
might be?
Ross
Ron de Bruin - 04 Apr 2007 22:13 GMT
You can use Thisworkbook.Path Ross

Signature

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm

>I have prepared a spreadsheet that has a macro(recorded) in it that when
> invoked, opens another excel file.
[quoted text clipped - 9 lines]
> might be?
> Ross
Bob Phillips - 04 Apr 2007 22:17 GMT
Haven't we been here before?

Workbooks.Open Filename:= "jimspreada1.xls"

Signature

---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

>I have prepared a spreadsheet that has a macro(recorded) in it that when
> invoked, opens another excel file.
[quoted text clipped - 10 lines]
> might be?
> Ross
Jim Jackson - 05 Apr 2007 13:34 GMT
There should be a common description of the path that will be available to
all, eg. GA123gg6\apps

You should be able to see that in Windows Explorer or you may have to ask IT
for help.  If you can establish that common path description, you will have
no problems.
Signature

Best wishes,

Jim

> Haven't we been here before?
>
[quoted text clipped - 14 lines]
> > might be?
> > Ross
 
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.