Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2005

Tip: Looking for answers? Try searching our database.

macro to create a 2 column page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sydney - 29 Jul 2005 06:25 GMT
Hi

Can anyone help me write a macro to create a 2 column page layout with
column 1 width = 6.5cm, column 2 width = 9.32cm?

Thanks in advance
Jezebel - 29 Jul 2005 07:04 GMT
What have you tried so far and what are you having trouble with?

> Hi
>
> Can anyone help me write a macro to create a 2 column page layout with
> column 1 width = 6.5cm, column 2 width = 9.32cm?
>
> Thanks in advance
sydney - 01 Aug 2005 00:40 GMT
I just  found this on on microsoft:

Sub InsertColumnBreaks()
'http://support.microsoft.com/?kbid=218500
  If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
     ActiveWindow.Panes(2).Close
  End If
  If ActiveWindow.ActivePane.View.Type <> wdPrintView Then
     ActiveWindow.ActivePane.View.Type = wdPrintView
  End If
  With ActiveDocument.PageSetup.TextColumns
     .SetCount NumColumns:=2
  End With

With ActiveDocument.PageSetup.TextColumns
   .SetCount NumColumns:=1
   .Add width:=InchesToPoints(2)
End With

Thanks!

> What have you tried so far and what are you having trouble with?
>
[quoted text clipped - 4 lines]
> >
> > Thanks in advance
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.