Results 1 to 2 of 2

Re: How To Create a macro for Cell References into Header for a workbook

Threaded View

  1. #1
    Registered User
    Join Date
    03-06-2012
    Location
    Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How To Create a macro for Cell References into Header for a workbook

    I got the code....

    Private Sub Workbook_SheetActivate(ByVal Sh As Object)
    With ActiveSheet.PageSetup
    .CenterHeader = "&""Arial,Bold""&12 " & Range("P1").Value & vbCr & Range("P2").Value
    End With
    
    End Sub
    Thanks,

    Vivek
    Last edited by arlu1201; 01-23-2013 at 02:24 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1