+ Reply to Thread
Results 1 to 3 of 3

Change font size

  1. #1
    Registered User
    Join Date
    05-24-2004
    Posts
    6

    Change font size

    Hi all,

    I'm trying to change the font size used in a worksheet. Now I change it with UsedRange.Font which works, but I would think there is a better way of doing it?

    I want it to change for all cells, like I'm setting a default font for the entire worksheet. It seems a bit slow/stupid to just go through all cells and change the font.

    Any help apprechiated!

  2. #2
    Forum Contributor
    Join Date
    11-16-2004
    Posts
    282
    This is straight from the Visual Basic Help topic Cells Property Example:

    This example sets the font and font size for every cell on Sheet1 to 8-point Arial.

    With Worksheets("Sheet1").Cells.Font
    .Name = "Arial"
    .Size = 8
    End With

    Hope this helps,
    theDude

  3. #3
    Registered User
    Join Date
    05-24-2004
    Posts
    6
    Sweet. Havn't seen 'cells' before. Thanks alot!

+ 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