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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Several Questions Regarding WORD

Status
Not open for further replies.

nochoice

Programmer
Jun 17, 2003
72
CA
Here are my questions:

1) How do I turn the entire menu bar off -file, view, help, etc....? -using VBA of course

2) How do I create a directory? - Again using VBA

3) How do I find screen resolution (example, whether I'm running on 800x600, 640x480, etc...)? Is it possible?

4) I have added a checkbox, I want to change its name and caption, the problem is when it is added, I don't know its name, how can I go about changing a checkbox's name when I first add it? Here is my code to add the checkbox:

Selection.InlineShapes.AddOLEControl ClassType:="Forms.CheckBox.1"

finally....

5) I open a document (doc1.doc) using the file open command (like clicking with my mouse no code), I then click a button in doc1.doc, and it opens a new document (doc2.doc). How do I find the name of doc1.doc? The reason is, I need to pass the value of a checkbox from doc1.doc to doc2.doc.
 
I hate to get picky here but you really should split these all up into separate threads. 1 Question per thread. It makes things a little more organized.

********************
What's the best way to get the answers you need?? See FAQ222-2244 for details!
 
Hi nochoice,

It would be better to ask individual questions, but I’ll have a go for you.
[ol][li]
Code:
Application.CommandBars("Menu Bar").Enabled = False
is what you want here.[/li]

[li]
Code:
 MkDir "
Code:
D:\Tony's Stuff\Newdir
Code:
"
for this – using your own name, obviously[/li]

[li]This is a bit trickier but see thread707-580507 for some code[/li]

[li]I don’t know – one reason for asking separate questions is you don’t rely on one person knowing all the answers[/li]

[li]Your new document doesn’t have any macros so what will run which uses this data? Very simply you could scan all open documents looking for it but that seems like overkill – there must be an easier way – tell us a bit more about what you are doing.[/li][/ol]Enjoy,
Tony
 
thanks for the help,

I'll post them separately
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top