Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use operators

Status
Not open for further replies.

LAXMIMA

Programmer
Joined
May 3, 2005
Messages
7
Location
IN
How to use operators. I am learning VBA for word. I am trying to format a document. I designed a macro for it. It is running also well. But each time when the document changes I have to change certain values. As in "with selection.find .text = "abc" can I not specify in place of typing the text again and again can i don't write the language as .text = "selection.paste" where I have already copied the text from somewhere else.
Also how can how use 'or' and 'and' operators.
 
Hi Laxmima - welcome to Tek-Tips.

Sorry, not trying to be critical, but you list yourself as "Programmer". Surely, if this is correct, you are aware that Help has documentation on Operators. Please look up Help.

Regarding your semi-specific request on selection.find, it is unclear exactly what you are asking. I think you seem to be asking about typing text and again. This...I think...is some sort of reference to using variables. Variables are absolutely essential to programming, and you are going to have to learn how to use them to be one. Look up variables in Help.

If you can be a bit more clear on exactly what you are doing regarding Selection.Find, then rewrite your problem, what, EXACTLY, you have done so far (including posting your code), we will be happy to point out tips and assist you with your efforts. Generalized questions can not get specific answers.

Post your code, pointing out where you have problems.

Also you may find looking in the FAQ section here helpful. There are many FAQs on issues that people commonly need to know about.

I hope I am not sounding rude. I am trying to be helpful. Good luck, welcome to Tek-Tips, and keep posting as we DO want to be helpful, but this is not a Help Desk.

Gerry
See my Paintings and Sculpture
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top