Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi,
I have a macro that uses Selection.Find to locate text and then deletes the column of the table where the text is found. How would I add the criteria to only delete the row if the text found is in the first row? Using Word 2003 Thanks |
#2
![]() |
|||
|
|||
![]()
Hi,
Selection.Information(wdEndOfRangeRowNumber) returns the row number where the end of the selection is. So: if Selection.Information(wdEndOfRangeRowNumber)= 1 then 'your code endif There is too: Selection.Information(wdStartOfRangeRowNumber) -- Greetings from Bavaria, Germany Helmut Weber, MVP WordVBA Win XP, Office 2003 "red.sys" & Chr$(64) & "t-online.de" |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to paste a column of text into a column in a Word Table | Page Layout | |||
Find all instances of a recurring text | Microsoft Word Help | |||
Table headers/footers and layout | Page Layout | |||
How do I create a macro to data sort in a table within a protecte. | Tables | |||
word 97 table now text | Tables |