Consulting

Results 1 to 3 of 3

Thread: Solved: Automatically change font size

  1. #1
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location

    Question Solved: Automatically change font size

    Hi all....

    I have a range R2:R208, I want is to change the font size from 14 to 10 if the length off any cell is more than 100 characters. (Just that cell). The range R2:R208 is linked to another spreadsheet.

    Thanks for all the help.

  2. #2
    VBAX Regular jigar1276's Avatar
    Joined
    Jun 2008
    Location
    Ahmedabad
    Posts
    42
    Location
    Please try this:
    [VBA]
    Sub ChangeFont()
    For i = 2 To 208
    If Len(Range("R" & i)) > 100 Then
    Range("R" & i).Font.Size = 10
    End If
    Next i
    End Sub

    [/VBA]

  3. #3
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location
    thanks jigar1276 not what I was looking for but this work.

    thanks again. sorted.....

Posting Permissions

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