|
-
Jul 12th, 2005, 08:51 AM
#1
Thread Starter
New Member
Kinda Resolved - VBA Word bold text help
I don't know the commands but i basically need commands for formatting output from a form to word
ThisDocument.Range.Text = ThisDocument.Range.Text & "Vendor: " & cboApp.Value & " With software: " & cboApplication.Value & " App Version: " & cboAppRev.Value & " On SDK version: " & cboSDK.Value & vbNewLine
Is the code and I need the comboboxes values to export in Bold and different size text than the others.
Any good websites for vba code in regards to what I need
Thanks so much
Last edited by mikemar; Jul 12th, 2005 at 09:32 AM.
-
Jul 12th, 2005, 09:25 AM
#2
Frenzied Member
Re: VBA Word bold text help
Whenever I forget how to format a cell or text in VBA, I use the record macro tool and just record me doing it manually then look at the code. Hope that helps.
-
Jul 12th, 2005, 09:30 AM
#3
Thread Starter
New Member
Re: VBA Word bold text help
It kinda does. The code is
Selection.Font.Bold = wdToggle
So i can use that to turn bold on and off, but i don't know how to turn it on and off in the middle of the line of code :
ThisDocument.Range.Text = ThisDocument.Range.Text & "Vendor: " & cboApp.Value & " With software: " & cboApplication.Value & " App Version: " & cboAppRev.Value & " On SDK version: " & cboSDK.Value & vbNewLine
I can get the whole thing to be bold, but not just some things. I think i need to find a better way to add to a document than ThisDocument.Range.Text = ThisDocument.Range.Text. I'm going to post a new topic about that
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|