PC Review


Reply
Thread Tools Rate Thread

Displaying pathname in the header

 
 
schoujar
Guest
Posts: n/a
 
      5th Oct 2005

Hi,

I just can't seem to figure out how to display the path of the file in
the header.

I've used &DD and &[Path] to no avail.

Thankx in advance

Sahil


--
schoujar
------------------------------------------------------------------------
schoujar's Profile: http://www.excelforum.com/member.php...o&userid=26574
View this thread: http://www.excelforum.com/showthread...hreadid=473278

 
Reply With Quote
 
 
 
 
dominicb
Guest
Posts: n/a
 
      5th Oct 2005

Good morning schoujar

What version of Excel do you have? If memory serves me correct the
Excel 2002 onwards can do this, but if you're using Excel 97/2000 the
a macro can be done to do this for you:

Sub SetHeader()
ActiveSheet.PageSetup.LeftHeader = ActiveWorkbook.FullName
End Sub

is all that's needed. If you don't want a left header then replac
"LeftHeader" with one of:

CenterHeader
RightHeader
LeftFooter
RightFooter
CenterFooter

HTH

Dominic

--
dominic
-----------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...fo&userid=1893
View this thread: http://www.excelforum.com/showthread.php?threadid=47327

 
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
RE: Displaying a Header =?Utf-8?B?TWlrZQ==?= Microsoft Access Forms 0 25th Jan 2007 01:00 PM
Label Header Not Displaying Correctly =?Utf-8?B?TWljaGFlbEFuZ2Vsbw==?= Microsoft Access Reports 1 29th Oct 2005 09:31 AM
Re: Displaying Dates in Report Header fredg Microsoft Access Reports 0 25th Mar 2004 11:24 PM
displaying email header Phil Roettcher Microsoft Outlook 1 11th Nov 2003 04:07 AM
LoadPicture Pathname or no Pathname Philipp Schramek Microsoft Excel Programming 1 8th Jul 2003 03:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:49 PM.