Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I Automically add the file path to a new document?

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default How do I Automically add the file path to a new document?

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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I Automically add the file path to a new document?

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the row1 content of the existing excel file automically tlee Excel Worksheet Functions 2 April 28th 09 01:47 AM
Need to add the path to my document anita67 New Users to Excel 1 November 4th 08 05:20 PM
Formula too long - new file path is shorter than old file path - Excel 2003 Greg J Excel Worksheet Functions 1 November 22nd 06 05:16 PM
Can you automatically insert a file path in an Excel document? Mimi Excel Discussion (Misc queries) 2 March 22nd 06 12:10 AM
Path to Lookup from another document Boethius1 Excel Discussion (Misc queries) 8 January 18th 06 07:13 PM


All times are GMT +1. The time now is 11:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"