Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Word Object code
#4
In most cases you can find Word/Excel functions in popup lists, and don't need to read help.

For example, I type "doc." and look for something that could be what I need. Found "Content". Double click. Look in status bar what it returns. It is Range object. If it is an object, I can type "." again and look in the list. Found "Text" property.

Macro Macro1449
Code:
Copy      Help
;;;-------------------------------

doc.Content.Text="text"

;;;-------------------------------

or

Macro Macro1449
Code:
Copy      Help
Word.Range rng=doc.Content
rng.Text="text"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)