Knowledgebase: Microsoft Word
"Run-Time Error 4605: This Command Is Not Available" When You Use PageSetup Property
Posted by - NA - on 28 March 2006 03:59 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.


(211 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
Help Desk Software by Kayako Fusion