Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / February 2006

Tip: Looking for answers? Try searching our database.

Deleting cells in Macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MSHO - 22 Feb 2006 17:09 GMT
I have a macro that compares two sets of data. Sometimes there isn't data and
so there is a #DIV/0! symbol. How do i go through the cells and delete all of
these?

Thanks in advance
Ron de Bruin - 22 Feb 2006 17:23 GMT
Try this for column A

With Columns("A:A")
       On Error Resume Next
       .SpecialCells(xlCellTypeFormulas, 16).ClearContents
       On Error GoTo 0
   End With

Signature

Regards Ron de Bruin
http://www.rondebruin.nl

>I have a macro that compares two sets of data. Sometimes there isn't data and
> so there is a #DIV/0! symbol. How do i go through the cells and delete all of
> these?
>
> Thanks in advance
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.