I am designing a macro in which i want to browse through a word document
containing 3 columns. How can I browse (move) around in the columns. Suppose
i want to go to last line of second column how can i do that. I don't want to
use column breaks at the end of column.
--
Kushal

Re: Browsing through Column by Jezebel

Jezebel
Sat Jul 01 08:20:06 CDT 2006

What does 'browse' mean within a macro?


"Kushal" <Kushal@discussions.microsoft.com> wrote in message
news:B6BB399C-CAE6-47C2-A49D-87F8458DEB40@microsoft.com...
>I am designing a macro in which i want to browse through a word document
> containing 3 columns. How can I browse (move) around in the columns.
> Suppose
> i want to go to last line of second column how can i do that. I don't want
> to
> use column breaks at the end of column.
> --
> Kushal
>



RE: Browsing through Column by Kushal

Kushal
Sat Jul 01 12:28:02 CDT 2006

Browsing means moving around. I want to design such a macro in which i can
move around a columns in a page.
--
Kushal



"Kushal" wrote:

> I am designing a macro in which i want to browse through a word document
> containing 3 columns. How can I browse (move) around in the columns. Suppose
> i want to go to last line of second column how can i do that. I don't want to
> use column breaks at the end of column.
> --
> Kushal
>

Re: Browsing through Column by Doug

Doug
Sat Jul 01 13:17:00 CDT 2006

That doesn't mean anything.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Kushal" <Kushal@discussions.microsoft.com> wrote in message
news:076577AF-CE8F-424C-A390-FDDFAFD756FA@microsoft.com...
> Browsing means moving around. I want to design such a macro in which i can
> move around a columns in a page.
> --
> Kushal
>
>
>
> "Kushal" wrote:
>
>> I am designing a macro in which i want to browse through a word document
>> containing 3 columns. How can I browse (move) around in the columns.
>> Suppose
>> i want to go to last line of second column how can i do that. I don't
>> want to
>> use column breaks at the end of column.
>> --
>> Kushal
>>



Re: Browsing through Column by Helmut

Helmut
Sun Jul 02 02:50:46 CDT 2006

Hi Kushal,

see:
http://word.mvps.org/FAQs/MacrosVBA/GetColNoOfSelection.htm

And have a pretty close look at this one:

Sub GotoEndofColumn(c As Long, p As Long)
' c = target column
' p = target page
' x = which column is the insertion point in
' y = which page in the insertion point on
Dim x As Long
Dim y As Long
With selection
.Collapse
.ExtendMode = False
.GoTo _
what:=wdGoToPage, _
which:=wdGoToAbsolute, _
Count:=p
x = Dialogs(wdDialogFormatColumns).ColumnNo
y = .Information(wdActiveEndPageNumber)
While x <> c + 1
.MoveRight
x = Dialogs(wdDialogFormatColumns).ColumnNo
y = .Information(wdActiveEndPageNumber)
If y <> p Then
.MoveLeft
Exit Sub
End If
' test for end of doc
' where moveright doesn't move the selection any further
If .End = ActiveDocument.Content.End - 1 Then
Exit Sub
End If
Wend
.MoveLeft
End With
End Sub

Sub test889()
GotoEndofColumn 2, 6
End Sub

It seems, there is no other way than
moving the selection around a lot.

All together it is nothing but a workaround,
until someone comes up with a perfect solution.

The code is in no way bullet proof,
but may give you an idea on how to tackle the problem.

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"






Re: Browsing through Column by Jezebel

Jezebel
Sun Jul 02 06:01:59 CDT 2006

How can a macro 'move around' ? Motivated by what?



"Kushal" <Kushal@discussions.microsoft.com> wrote in message
news:076577AF-CE8F-424C-A390-FDDFAFD756FA@microsoft.com...
> Browsing means moving around. I want to design such a macro in which i can
> move around a columns in a page.
> --
> Kushal
>
>
>
> "Kushal" wrote:
>
>> I am designing a macro in which i want to browse through a word document
>> containing 3 columns. How can I browse (move) around in the columns.
>> Suppose
>> i want to go to last line of second column how can i do that. I don't
>> want to
>> use column breaks at the end of column.
>> --
>> Kushal
>>