A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

MACROS



 
 
Thread Tools Display Modes
  #1  
Old April 27th, 2004, 10:41 PM
mac
external usenet poster
 
Posts: n/a
Default MACROS

just beginning to use macros...want to get a macro to file, insert, go to the file and stop at the line to type in the name of the file to insert. It gets me that far, but then to turn off the macro I have to close the file insert window and that blows away the recording so far. Does this make any sense? the steps are insert, file, Cdrive, my documents, ...then I want it to stop so I can put the name of the file in...then insert and close. Am I asking too much of it.
  #2  
Old April 27th, 2004, 10:52 PM
Charles Kenyon
external usenet poster
 
Posts: n/a
Default MACROS

Sorry, you are asking too much of macro recording, which doesn't record
keystrokes, but results. In this case, since there is no result, there is no
record.

Edit your macro and put in the following command where you want to be
inserting the file:

Application.Dialogs(wdDialogInsertFile).Show

There is much more on using and writing macros on the MVP FAQ site.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

"mac" wrote in message
...
just beginning to use macros...want to get a macro to file, insert, go to

the file and stop at the line to type in the name of the file to insert. It
gets me that far, but then to turn off the macro I have to close the file
insert window and that blows away the recording so far. Does this make any
sense? the steps are insert, file, Cdrive, my documents, ...then I want it
to stop so I can put the name of the file in...then insert and close. Am I
asking too much of it.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:56 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.