PC Review


Reply
Thread Tools Rate Thread

How do I Automically add the file path to a new document?

 
 
=?Utf-8?B?U2hvcmV0eiAmIENvbXBhbnk=?=
Guest
Posts: n/a
 
      21st Sep 2007
I am using office 2007 and I need to have the file path automatically added
to new excel worksheets and word documents. I believe I have to use a macro
for this to work. I have found some macro code for this but none of them are
for Office 2007.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      22nd Sep 2007
If you want it in a cell on a worksheet, use something like this

=CELL("filename",A1)

=LEFT(CELL("filename",A1),SEARCH("[",CELL("filename",A1))-2)


--
HTH,
Barb Reinhardt



"Shoretz & Company" wrote:

> I am using office 2007 and I need to have the file path automatically added
> to new excel worksheets and word documents. I believe I have to use a macro
> for this to work. I have found some macro code for this but none of them are
> for Office 2007.

 
Reply With Quote
 
=?Utf-8?B?U2hvcmV0eiAmIENvbXBhbnk=?=
Guest
Posts: n/a
 
      24th Sep 2007
Barb,

Thank you for your reply to my post. I don't think I was clear in my
question though. I need a macro that will automatically put the file path in
the footer of every document I open. I have found some Macro codes for
previous Office versions but none of them work on Office 2007.

"Barb Reinhardt" wrote:

> If you want it in a cell on a worksheet, use something like this
>
> =CELL("filename",A1)
>
> =LEFT(CELL("filename",A1),SEARCH("[",CELL("filename",A1))-2)
>
>
> --
> HTH,
> Barb Reinhardt
>
>
>
> "Shoretz & Company" wrote:
>
> > I am using office 2007 and I need to have the file path automatically added
> > to new excel worksheets and word documents in the footer. I believe I have to use a macro for this to work. I have found some macro codes for this action but none of them are working with Office 2007.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the row1 content of the existing excel file automically tlee Microsoft Excel Discussion 2 28th Apr 2009 01:47 AM
How to change the row1 content of the existing excel file automically tlee Microsoft Excel Programming 2 28th Apr 2009 01:47 AM
How to change the row1 content of the existing excel file automically tlee Microsoft Excel Worksheet Functions 2 28th Apr 2009 01:47 AM
File extensions automically added to new files =?Utf-8?B?QiBCdXNobmVsbA==?= Microsoft Frontpage 5 22nd Oct 2004 01:35 AM
Re: Insert Path/File name onto document Bill Foley Microsoft Word Document Management 0 19th Apr 2004 07:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:51 AM.