+ Reply to Thread
Results 1 to 5 of 5

Set font size in page setup using variables

  1. #1
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,145

    Set font size in page setup using variables

    I am trying to set the font size of a variable for page setup properties (printing)
    Please Login or Register  to view this content.
    The text "&18" is the font size (18) but I can't seem to pass that in the code above; as shown above is incorrect. Each variable (3) needs the font to be 18.
    Regards

    Rick
    Win10, Office 365

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,419
    Try wrapping the formatting bits in quotes.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,145
    Thanks Andy, I did that and got HUGE fonts, like 100 plus in size?

    Please Login or Register  to view this content.
    p.s.

    The letter "s" prefix on my variables signifies a "string", IE, a "v" would signify a "variant".

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,419
    If the variable actual contain numbers then insert a space after the 18 otherwise it will not know where the fontsize ends and your number starts.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,145
    Damn, , he's good. Works great.
    Thanks Andy!!!

+ Reply to Thread

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