Results 1 to 3 of 3

Thread: Kinda Resolved - VBA Word bold text help

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    10

    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.

  2. #2
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    10

    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
  •  



Click Here to Expand Forum to Full Width