Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This code works for me. I believe there'e a newsgroup for Word and VBA
programming, so if the following doesn't solve your problem, you can ask there. Sub Test() With ActiveDocument For p = 1 To .Paragraphs.Count - 1 If Left$(.Paragraphs(p + 1).Range.Text, 1) = vbTab Then Debug.Print p + 1, "tab" Else Debug.Print p + 1, "no tab" End If Next p End With End Sub On Thu, 6 Jan 2005 13:23:12 -0800, "Robert" wrote: Hi, I am new to VBA in Word. Would anyone be able to answer this: If I have two tabs and I am at the position starting at the second tab, how can I determine in VBA if there is anything at the first tab on the next line. For example: Tab 1 Tab 2 Line 1 Some Text Some other text Line 2 Yet more text If there is a paragraph mark at the end of "Some other text" on Line 1, when I return to the start of the next line, how can I determine if there is anything at Tab 1 for the second line? I hope I am explaining this clear enough! Any help would be appreciated. Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
There is no row at position 0 | Excel Discussion (Misc queries) | |||
Look up a value which position changes. | Excel Discussion (Misc queries) | |||
How can I fix the position of a row | Excel Discussion (Misc queries) | |||
.position | Charts and Charting in Excel | |||
UserForm position | Excel Programming |