Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-02-2014, 11:19 PM
PRA007's Avatar
PRA007 PRA007 is offline I want Marco solution to remove specific Raw having only .(dot Character) Windows 7 32bit I want Marco solution to remove specific Raw having only .(dot Character) Office 2010 32bit
Competent Performer
I want Marco solution to remove specific Raw having only .(dot Character)
 
Join Date: Dec 2014
Location: Ahmedabad, Gujrat, India
Posts: 145
PRA007 is on a distinguished road
Default I want Marco solution to remove specific Raw having only .(dot Character)

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.
Reply With Quote
  #2  
Old 12-03-2014, 03:58 AM
gmayor's Avatar
gmayor gmayor is offline I want Marco solution to remove specific Raw having only .(dot Character) Windows 7 64bit I want Marco solution to remove specific Raw having only .(dot Character) Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

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
Reply With Quote
  #3  
Old 12-04-2014, 01:53 AM
PRA007's Avatar
PRA007 PRA007 is offline I want Marco solution to remove specific Raw having only .(dot Character) Windows 7 32bit I want Marco solution to remove specific Raw having only .(dot Character) Office 2010 32bit
Competent Performer
I want Marco solution to remove specific Raw having only .(dot Character)
 
Join Date: Dec 2014
Location: Ahmedabad, Gujrat, India
Posts: 145
PRA007 is on a distinguished road
Default

Thank You very much. It deed job for me. This was my first post.
Reply With Quote
Reply

Tags
microsoft word 2010, rtf, vba in microsoft word



Similar Threads
Thread Thread Starter Forum Replies Last Post
I want Marco solution to remove specific Raw having only .(dot Character) How to remove "|" character in Word davidplowman Word 1 06-23-2014 11:39 AM
I want Marco solution to remove specific Raw having only .(dot Character) How do I output special character to a specific cell (x,y)? 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
I want Marco solution to remove specific Raw having only .(dot Character) Need VBA For Macro On How To Remove Specific Words 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

Other Forums: Access Forums

All times are GMT -7. The time now is 01:13 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft