Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Stupid Word Macro question


  • Please log in to reply

#1
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

Advertisements


#2
Octagonal

Octagonal

    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.

HTH
"O"
  • 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