![]() |
|
![]() |
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
![]()
Hello Every one.
I am struggling to figure it out how to do this My table is in this format http://3.bp.blogspot.com/-l3WXGukdIk...Zo/s1600/1.jpg I want to remove the row having only dot in first cell followed by empty cell Last edited by PRA007; 12-03-2014 at 12:46 AM. |
#2
|
||||
|
||||
![]()
If by 'dot' you mean a period 'chr(46)' then
Code:
Dim oRow As Row For Each oRow In ActiveDocument.Tables(1).Rows If oRow.Cells(1).Range.Characters(1) = Chr(46) And _ Len(oRow.Cells(1).Range) = 3 And _ Len(oRow.Cells(2).Range) = 2 Then oRow.Delete End If Next oRow
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
||||
|
||||
![]()
Thank You very much. It deed job for me. This was my first post.
|
![]() |
Tags |
microsoft word 2010, rtf, vba in microsoft word |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
davidplowman | Word | 1 | 06-23-2014 11:39 AM |
![]() |
norwood | Word VBA | 2 | 01-31-2014 01:26 PM |
Remove first character from text file | dwillyfan | Word VBA | 1 | 09-04-2012 08:29 PM |
![]() |
netchie | Word VBA | 6 | 08-28-2012 03:37 PM |
Remove specific recipients while replying to all | McFerra | Outlook | 0 | 12-22-2010 10:13 PM |