Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-27-2015, 01:52 PM
ksigcajun ksigcajun is offline Bolding in script Windows 7 64bit Bolding in script Office 2010 64bit
Advanced Beginner
Bolding in script
 
Join Date: May 2014
Posts: 76
ksigcajun is on a distinguished road
Default Bolding in script

I'm sure this has been covered previously, so I do apologize. I did search, but couldnt find what I was looking for.

I've built a script that will place text in a form when an option button is chosen. I want to have the numbers for each paragraph bolded and not the text.

I know how to bold the entire paragraph, but not just some.

Ex: Currently
10.2.3 - By clicking on the form name, form description or form settings link from the New Form or Edit Form screen, you will activate the form settings interface. The form settings interface consists of three tabs. Each tab consists of options and settings for the form.

10.2.4 - You may select to either use a text based button or an image button. If you would like to use text for a button simply select Text and type in what you would like to appear as the button text. To use an image, select Image and enter the full path to the image you would like to use for the submit button.



Need it to be
10.2.3 - By clicking on the form name, form description or form settings link from the New Form or Edit Form screen, you will activate the form settings interface. The form settings interface consists of three tabs. Each tab consists of options and settings for the form.

10.2.4 - You may select to either use a text based button or an image button. If you would like to use text for a button simply select Text and type in what you would like to appear as the button text. To use an image, select Image and enter the full path to the image you would like to use for the submit button.

PHP Code:
Private Sub OptionButton1_Click()
If 
Me.OptionButton1.Value True Then
   Set oRng 
ActiveDocument.Bookmarks("BM2").Range
     oRng
.Text "10.2.3 - By clicking on the form name, form description or form settings link from the New Form or Edit Form screen, you will activate the form settings interface. The form settings interface consists of three tabs. Each tab consists of options and settings for the form." vbCr _
"10.2.4 - You may select to either use a text based button or an image button. If you would like to use text for a button simply select Text and type in what you would like to appear as the button text. To use an image, select Image and enter the full path to the image you would like to use for the submit button."vbCr _
ActiveDocument
.Bookmarks.Add "BM2"oRng
End 
If
End Sub 
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with VBA script nsyrax Word VBA 1 01-18-2014 03:38 AM
Bolding in script Outlook Script Help TheInfinetGroup Outlook 1 03-02-2013 07:43 AM
Add Shared Calendar using script Antros Outlook 0 03-15-2012 01:01 PM
Bolding in script Script Doesn't works on other machine ravininave Word 1 01-05-2011 01:45 PM
[ask] about VB Script + Ms. Project anak_baru Project 2 03-10-2009 01:42 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:16 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