Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Nov 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to find direct formatting using vba code (1)

    Hi, guys:

    How to find direct font formatting using vba code? and change the font to default one, but keep underline,
    bold,italic untouched?

    Thanks

  2. #2
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to find direct formatting using vba code (1)

    Word, Excel, Powerpoint, other?

    Selection.Font.Name = "Arial"

    works in Word and Excel- but if you want to apply without using a selection (or, for instance, applying a font to just a part of a single cell in Excel), you may need to know more about the way Word/Excel/PPT works
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  3. #3
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: How to find direct formatting using vba code (1)

    Hi,
    Do you mean something like:
    Selection.Font.Name = Application.Standardfont?
    (There's not a lot of point checking to see if it is already the default font)
    Hope that helps.
    Regards,
    Rory

    Microsoft MVP - Excel

Posting Permissions

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