Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 05-21-2009, 08:23 AM
Puffin617 Puffin617 is offline Changing all different font sizes by a value Windows XP Changing all different font sizes by a value Office 2003
Novice
Changing all different font sizes by a value
 
Join Date: May 2009
Posts: 5
Puffin617 is on a distinguished road
Default

Hey,

NO-GO... Here is my code so far...

Code:
Private Sub CommandButton1_Click()

    'Application.ScreenUpdating = False
    
    SizeIncrease = TextBox1.Value
    
    If SizeIncrease = "" Then
        End
    End If
    
    Selection.Find.ClearFormatting        '<------Repeat from here

    With Selection.Find
        .Text = "*"
        .Replacement.Text = ""
        .Forward = True
        .Wrap = wdFindContinue
        .Format = True
        .MatchCase = False
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
        .MatchWildcards = True
    End With

    If OptionButton1 = True Then
        While Selection.Find.Execute
            Selection.Font.Size = Selection.Font.Size + SizeIncrease
        Wend
    Else
        While Selection.Find.Execute
            Selection.Font.Size = Selection.Font.Size - SizeIncrease
        Wend
    End If

    'Application.ScreenUpdating = False
    
    frmChangeFontSize.Hide
        
End Sub
It just continues right past the end of the selection...

A thought : What does the ".wrap" in the find do?
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing all different font sizes by a value Type spacing and point sizes in Word funky Word 3 01-14-2009 09:18 PM
Changing all different font sizes by a value Font colors JerryB Excel 1 11-30-2008 10:23 AM
need help with font color samsongee Word 0 09-07-2006 10:18 PM
IRR with Changing Signs aml480 Excel 0 03-16-2006 11:27 PM
Changing all different font sizes by a value Font Problem with Richtextbox in MS Access Report surendrababu Office 2 11-29-2005 02:11 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft