+ Reply to Thread
Results 1 to 2 of 2

Using If Statement to format a bookmark (complete newbie)

  1. #1
    Registered User
    Join Date
    01-14-2013
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    0

    Question Using If Statement to format a bookmark (complete newbie)

    Hi

    I'm very new to VBA in general and have been excited to get my first userform up and running in word.
    What I'm trying to do now is tweak it a little but so that if a field (cboSTATE) is left blank then another field (BkSub) becomes bold.

    I've come up with the below from reading the text book I have, but it's not working as it has invalid use of property..my code is probably way off...but

    Please Login or Register  to view this content.

    In case my above explanation made no sense
    An example of what I mean is - with all field filled out the form would output an address like
    Joe Blog
    123 Fake Street
    Suburbia
    State

    but if the state wasn't filled in I'd like it to return

    Joe Blog
    123 Fake Street
    Suburbia

    Thanks so much in advance I feel silly asking but as I said I'm a complete rookie and I've been wrestling this issue over the weekend to no avail.
    Cheers
    KG

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Using If Statement to format a bookmark (complete newbie)

    Try:
    Please Login or Register  to view this content.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1