LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 123
Default Delete all rows where there is no entry in Column 'C'

On 1 Jun., 16:41, Gord Dibben <gorddibbATshawDOTca wrote:
You must have Option Explicit at top of module.

Add a line after *Public Sub DeleteRowOnCell()

Dim coltocheck as Range

Aplogies for that.

Gord

On Mon, 31 May 2010 20:54:02 -0700 (PDT), andreashermle



wrote:
On May 31, 6:27*pm, Gord Dibben <gorddibbATshawDOTca wrote:
Public Sub DeleteRowOnCell()


* * Set coltocheck = Columns(3)


* * 'if you want user-selectable column use inputbox


* *'Set coltocheck = Application.InputBox(prompt:= _
* * * * * ' *"Select A Column", Type:=8)


* * coltocheck.SpecialCells(xlCellTypeBlanks).EntireRo w.Delete


End Sub


Gord Dibben *MS Excel MVP


On Mon, 31 May 2010 08:52:37 -0700 (PDT), andreashermle


wrote:
Dear Experts:


I got a multi-column, mulit-row table with numerous data records. Some
records do not have any entry in Column 'C'.


I now would like to be able via a macro to delete all records that do
not have any entry in Column C.


How is this achieved?


Thank you very much in advance for your great help.


Regards, Andreas- Hide quoted text -


- Show quoted text -


Hi Gord,


thank you very much for your swift help. I am afraid to tell you that
I am getting a compile error telling me that the variable 'coltocheck'
is not defined.


Regards, Andreas- Zitierten Text ausblenden -


- Zitierten Text anzeigen -


ok, thank you very much for your terrific support


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How 2 lock row and column delete/add but allow data entry? CC Santa Monica Excel Discussion (Misc queries) 8 January 29th 19 02:51 AM
Macro to delete last entry of a column Mel Excel Programming 5 February 6th 10 04:16 AM
Search Column - Find Multiple Entries - Sum Then Delete to Single Entry Ledge Excel Programming 5 June 19th 06 08:25 PM
Delete a Column Based on User Entry Anice Excel Programming 3 June 13th 06 02:54 PM
Delete Rows containing pop-up entry CLR Excel Programming 6 January 4th 05 06:56 PM


All times are GMT +1. The time now is 06:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"