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 / Programming / September 2007

Tip: Looking for answers? Try searching our database.

insert named cell in header

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Giggly4g - 23 Sep 2007 17:16 GMT
Hi! I have a workbook with multiple sheets using the same header. I'm trying
to insert the contents of a named cell from the first worksheet into the
header that is used for all of the other worksheets. The first sheet is
called Data Entry. The named cell is Target. The header would look like this:
Company name: <Target>

Your help would be greatly appreciated!
Gord Dibben - 23 Sep 2007 17:58 GMT
Sub Name_All_Sheets()
   Set wkbktodo = ActiveWorkbook
   For Each ws In wkbktodo.Worksheets
       ws.PageSetup.RightFooter = "Company Name: " & Range("Target").Value
   Next
End Sub

Gord Dibben  MS Excel MVP

>Hi! I have a workbook with multiple sheets using the same header. I'm trying
>to insert the contents of a named cell from the first worksheet into the
[quoted text clipped - 3 lines]
>
>Your help would be greatly appreciated!
 
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.