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
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.
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