The following code example loops through all the installed converters, and if it finds the WordPerfect 6. Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode.
Is this page helpful? Please rate your experience Yes No. Any additional feedback? In this article. The name for the document. The default is the current folder and file name. If the document has never been saved, the default name is used for example, Doc1. If a document with the specified file name already exists, the document is overwritten without prompting the user. If you want to bypass the dialog box completely, a different macro approach may work for you.
This macro figures out the folder for the currently open document and then saves the PDF into that folder using the same name as the document. So, for instance, if you are working on a document called "MyDoc. If you prefer for your PDF files to be saved in a different folder, all you would need to do is assign the full path to that folder to the sPath variable. As an example, let's say that you want all your PDF files to be saved in a common folder. Just replace this line:.
Note: If you would like to know how to use the macros described on this page or on any other page on the WordTips sites , I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab. WordTips is your source for cost-effective Microsoft Word training. Microsoft Word is the most popular word processing software in the world. This tip applies to Microsoft Word , , , and With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author.
He is president of Sharon Parq Associates , a computer and publishing services company. Learn more about Allen Workbooks can contain macros, or not.
It is entirely up to you whether they do or not, but at some future time you might Need your macro to get some input from a user? The standard way to do this is with the InputBox function, described in Given a particular week number for a year, you may want to figure out the date of the last day in that week.
There is no Discover how to extend the capabilities of Office Word, Excel, PowerPoint, Outlook, and Access with VBA programming, using it for writing macros, automating Office applications, and creating custom applications.
Need to have a series of documents customized for individual users? Mail merge may be overkill, but the macro presented When you print a document, Word remains busy in the background until the printing is done. If you try to end the program Serious users of Word often display non-printing characters on-screen so they can see them easier. If you want those Enter your address and click "Subscribe. Your e-mail address is not shared with anyone, ever.
Maximum image size is 6Mpixels. Images larger than px wide or px tall will be reduced. Up to three images may be included in a comment. Switch to the next tab in a dialog box. Switch to the previous tab in a dialog box. Move between options in an open drop-down list, or between options in a group of options. Arrow keys. Perform the action assigned to the selected button; select or clear the selected check box. Select an option; select or clear a check box. Open a selected drop-down list.
Select an option from a drop-down list. First letter of an option in a drop-down list. Close a selected drop-down list; cancel a command and close a dialog box. Run the selected command. Use edit boxes within dialog boxes. An edit box is a blank in which you type or paste an entry, such as your user name or the path to a folder. Move to the beginning of the entry. Move to the end of the entry. Move one character to the left or right. Move one word to the left. Move one word to the right.
Select or unselect one character to the left. Select or unselect one character to the right. Select or unselect one word to the left. Select or unselect one word to the right. Select from the insertion point to the beginning of the entry. Select from the insertion point to the end of the entry. Use the Open and Save As dialog boxes.
Display the Open dialog box. Display the Save As dialog box. Go to the previous folder. Up One Level button: Open the folder one level above the open folder. Delete button: Delete the selected folder or file. Create New Folder button: Create a new folder.
Views button: Switch among available folder views. Display a shortcut menu for a selected item such as a folder or file.
Move between options or areas in the dialog box. Open the Look in list. Update the file list. Undo and redo actions. Cancel an action. Undo an action. Redo or repeat an action. Access and use task panes and galleries. Move to a task pane from another pane in the program window. When a menu is active, move to a task pane. When a task pane is active, select the next or previous option in the task pane.
Display the full set of commands on the task pane menu.
0コメント