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 / January 2007

Tip: Looking for answers? Try searching our database.

Can we insert Custom Properties in the header in Excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aryan - 19 Jan 2007 04:48 GMT
Hello All,

I have been struggling through a problem from long time. Can we insert
Custom Properties in the header in Excel. If yes, how??? Is it possible

only through macros & not without that?? Can anybody get me the macro
code.

My main problem is, I want to insert the date through a field/Custom
Property in the Header so that user can easily go and change the date
just by updating the field as we do in MS WORD.

Plz somebody help. Its urgent.

Thanks,
Rudra
Bob Phillips - 19 Jan 2007 09:38 GMT
Yes, it needs code

Private Sub Workbook_BeforePrint(Cancel As Boolean)
   With ActiveSheet.PageSetup
       .LeftHeader = ActiveWorkbook.CustomDocumentProperties("myDate")
   End With
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code

Signature

HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

> Hello All,
>
[quoted text clipped - 12 lines]
> Thanks,
> Rudra
Aryan - 19 Jan 2007 10:11 GMT
Hey.......thnk u very much Bob......dat code really worked.......thnx
very much once again
 
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.