+ Reply to Thread
Results 1 to 6 of 6

PageSetup.CenterHeader = "My Heading" --> I need to change this font size from 8 to 16.

  1. #1
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    PageSetup.CenterHeader = "My Heading" --> I need to change this font size from 8 to 16.

    Hi friends,
    1- Open enclosed file.
    2- Run Macro1.
    3- Run Macro2.
    4- Look printing view of page. (See "My Heading" font size is 8.)

    So, I need a macro like this;
    Please Login or Register  to view this content.
    Regards
    Attached Files Attached Files
    Sub DontForgetThese()
         If Your thread includes any code Then Please use code tags...
         If Your thread has been solved Then Please mark as solved...
         If Anybody has helped to you Then Please add reputation...
    End Sub

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: PageSetup.CenterHeader = "My Heading" --> I need to change this font size from 8 to 1

    [code]
    ActiveSheet.PageSetup.CenterHeader = "&16My Heading"
    [\code]

    search help for "Formatting Codes For Headers And Footers" for more details on available codes.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: PageSetup.CenterHeader = "My Heading" --> I need to change this font size from 8 to 1

    Hi Andy,
    Thanks for the answer. Solved.
    I have one more question.
    I found following links.
    http://msdn.microsoft.com/en-us/libr...ffice.12).aspx
    http://msdn.microsoft.com/en-us/libr...(v=vs.90).aspx
    How can I change font color ?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: PageSetup.CenterHeader = "My Heading" --> I need to change this font size from 8 to 1

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: PageSetup.CenterHeader = "My Heading" --> I need to change this font size from 8 to 1

    Perfect.
    KFF0000--->Red
    K00FF00--->Green
    K0000FF--->Blue
    Do you have a link which I can check other colours ?

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: PageSetup.CenterHeader = "My Heading" --> I need to change this font size from 8 to 1


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Range("A1") = Sheets("Sheet2").CenterHeader.Text doesnt work.
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2013, 07:06 AM
  2. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  3. Excel 2010 - "edit comments" font size
    By wuaname in forum Excel General
    Replies: 1
    Last Post: 05-09-2012, 10:15 AM
  4. [SOLVED] How do I "conditionally" change font size based on text length?
    By Found in Florida in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2005, 07:05 PM

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