Jump to:
Introduction:(Back) Microsoft Word is an exceptionally power program. When coupled with a rich set of macros, tedious hours are save which may be better applied to doing something useful. Only you know how you use Word, but customizing a lot of pulldown menus and keystrokes into Macro Buttons for things you do all the time can be a great time saver. Practically and sequence, like opening a remote file and importing the first three paragraphs can be made possible provided you use the keyboard shortcut keys to advance the selection area. ShortCut Keys:
Jump to topics:Templates:Salkows MacrosForms and Snippets shown on this page are in Salkow's Macros Forms:![]() ![]()
(TOP) (Back) Real life examples go a long way toward help the new macro buider realise some of the complexities of Word macros. Because the scripting includes system calls and imort and export of files, practically, there are no limitations as to what may be accomplished. Snippets:On Error Resume Next 'pops up a advanced google search in Explorer 'http://www.google.com/advanced_search?hl=en&num=100 Dim idum As Integer Dim cmd, qquote, browser_File_Spec, WebAddress As String qquote = Chr$(34) 'needed to parse a space in Program Files' 'change browser next line down, if not explorer browser_File_Spec = qquote + "C:\Program Files\Internet Explorer\IEXPLORE.EXE" + qquote cmd = browser_File_Spec + " " + WebAddress 'NEED SPACE HERE IF NETSCAPE WebAddress = "http://www.google.com/advanced_search?hl=en&num=100" cmd = browser_File_Spec + " " + WebAddress 'NEED SPACE HERE IF NETSCAPE 'Debug.Print cmd idum = Shell(cmd, vbMinimizedNoFocus) End Sub Paste Device Independent Image FloatingSub PasteImage()' ' Paste Device Independent Image Floating ' Macro recorded 12/8/2003 by Steven Salkow ' Selection.PasteSpecial Link:=False, DataType:= _ wdPasteDeviceIndependentBitmap, Placement:=wdFloatOverText, DisplayAsIcon _ :=False End Sub (TOP) (Back) Recording a MacroStart with making the Visual Basic Toolbar visible because that show the macro buttons.
![]() ![]()
(TOP) (Back) Making a Macro Button Appear on Your ToolbarRight Click on the Toolbar area and select CUSTOMIZE (Bottom of Menu)![]() ![]()
(TOP) (Back) Troubleshooting ProblemsMacro security warnings
How to put Buttons and Text windows right on Word documentsFirst step is make the Visual Basic Tool bar visible. Next, enter the design mode, and activate the tool box. ![]()
Final Form: ![]() Power Point PresentationAvailable to Lockheed Personnel Only
Course Handouts |
|
(TOP) Intranet Website - For information or questions regarding this web page, please contact Steve Salkow |