Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

Stupid Word Macro question

  • Please log in to reply

Dungeon Rat

Dungeon Rat

    New Member

  • Member
  • Pip
  • 1 posts
I need a Word macro to (among other things) search for some text, and then "if found" to perform certain actions. Everything else in the macro works except that I can't find the correct syntax for the "if found" or "found = true" or whatever it is!

My only resources at this point are Word's own help files (copied the syntax shown there -- didn't work) and a "For Dummies" book (no examples at all).

Sorry to post such a dumb question but I'm desperate!!! A recommendation for a website or book, or any help at all, would be greatly appreciated.
  • 0




    Member 2k

  • Member
  • PipPipPipPipPip
  • 2,528 posts
Hi Dungeon Rat

What you are trying to achieve is pretty simple. After you have recorded or written code for your macro go into the Visual Basic Editor and look at the help file for "If..Then..Else.." statements. They give reasonable examples and I think that this is what will assist you. If you have the dummies book, look it up there.

  • 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP