Live Chat Software by Kayako |
Knowledgebase: Microsoft Word
WD2000: "Run-Time Error 4605: This Command Is Not Available" When You Use PageSetup Property
Posted by - NA - on 27 March 2006 05:38 AM
|
|
Solution: 1. In Word 2000, open a new document. 2. Press ENTER, so that there are two paragraphs in the document. 3. On the Tools menu, point to Macro and then click Macros. 4. In the Macro Name text box, type InsertFrame and then click Run. The insertion point now changes to a cross. 5. Draw a frame. 6. Drag the anchor of the frame to the first paragraph in the document. 7. Insert a table into the frame. 8. Press ALT+F11 to start the Visual Basic Editor. 9. On the Insert menu, click Module to insert a new module. 10. In the module, type the following VBA code: Public Sub FrameTest() Dim sec As Section For Each sec In ActiveDocument.Sections MsgBox sec.PageSetup.Orientation Next End Sub 11. Run the macro. | |
|
Comments (0)