Nov 27, 2003 #1 dk99 MIS Joined Jun 20, 2003 Messages 76 Location GB I have a macro in word and when it finished it automatically saves the file for me, but I want it to prompt me for the file name before it saves. How can i do this ?
I have a macro in word and when it finished it automatically saves the file for me, but I want it to prompt me for the file name before it saves. How can i do this ?
Nov 27, 2003 1 #2 dyarwood Programmer Joined Nov 3, 2003 Messages 1,483 Location GB Use an input box something like filenam = InputBox(Prompt:="Enter filename" then use the string filenam in the save command dyarwood Upvote 0 Downvote
Use an input box something like filenam = InputBox(Prompt:="Enter filename" then use the string filenam in the save command dyarwood
Nov 27, 2003 Thread starter #3 dk99 MIS Joined Jun 20, 2003 Messages 76 Location GB thanx this works but can I get it to input just part of the file name. For example the prompt would only ask for the date and then it would save it as: date_newfile.doc _newfile.doc is always the same only the date changes ? Upvote 0 Downvote
thanx this works but can I get it to input just part of the file name. For example the prompt would only ask for the date and then it would save it as: date_newfile.doc _newfile.doc is always the same only the date changes ?
Nov 27, 2003 #4 dyarwood Programmer Joined Nov 3, 2003 Messages 1,483 Location GB Use the input box as above but then do the following filenam = filenam & "_newfile.doc" This will give the file name I would think you need Is the date you want the present date? If so you could try using the NOW() function. dyarwood Upvote 0 Downvote
Use the input box as above but then do the following filenam = filenam & "_newfile.doc" This will give the file name I would think you need Is the date you want the present date? If so you could try using the NOW() function. dyarwood
Nov 27, 2003 Thread starter #5 dk99 MIS Joined Jun 20, 2003 Messages 76 Location GB Perfect - THANKYOU ! Upvote 0 Downvote
Nov 27, 2003 #6 dyarwood Programmer Joined Nov 3, 2003 Messages 1,483 Location GB Not a problem, cheers for the star dyarwood Upvote 0 Downvote