Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default To Delete the specific rows when blank is found on column A

Hi everyone,

Yesterday, Norman gave mi the solution to my subject stated the above.

Columns("A:A").SpecialCells(xlBlanks).EntireRow.De lete

The writings stated the above works... but I am facing another problem which
is if when worksheet happens to be empty with no datas, so how am I gonna
continue from there?? cos the writings above only works if there is datas in
the worksheet.

AJ
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default To Delete the specific rows when blank is found on column A

Hi AJ,

Sub Tester07()

On Error Resume Next
Columns("A:A").SpecialCells(xlBlanks).EntireRow.De lete
On Error GoTo 0

End Sub

--

---
Regards,
Norman



"ddiicc" wrote in message
...
Hi everyone,

Yesterday, Norman gave mi the solution to my subject stated the above.

Columns("A:A").SpecialCells(xlBlanks).EntireRow.De lete

The writings stated the above works... but I am facing another problem
which
is if when worksheet happens to be empty with no datas, so how am I gonna
continue from there?? cos the writings above only works if there is datas
in
the worksheet.

AJ



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default To Delete the specific rows when blank is found on column A

Hi AJ,

Yesterday, Norman gave mi the solution to my subject stated the above.

Columns("A:A").SpecialCells(xlBlanks).EntireRow.De lete


In a follow up reply, I alluded to the 8192 non-contiguous cells problem
associated with the SpecialCells method. I should also have mentioned that,
at the other end of the spectrum, the SpecialCells method will fail if no
cells are found - as you have now discovred.

The fault is mine and I apologise: use of the SpecialCells method should, in
my opinion, always include an error handler to catch (at leat) the latter
situation.

---
Regards,
Norman



"Norman Jones" wrote in message
...
Hi AJ,

Sub Tester07()

On Error Resume Next
Columns("A:A").SpecialCells(xlBlanks).EntireRow.De lete
On Error GoTo 0

End Sub

--

---
Regards,
Norman



"ddiicc" wrote in message
...
Hi everyone,

Yesterday, Norman gave mi the solution to my subject stated the above.

Columns("A:A").SpecialCells(xlBlanks).EntireRow.De lete

The writings stated the above works... but I am facing another problem
which
is if when worksheet happens to be empty with no datas, so how am I gonna
continue from there?? cos the writings above only works if there is datas
in
the worksheet.

AJ





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default To Delete the specific rows when blank is found on column A

Norman,
Many thanks to you. :)

"Norman Jones" wrote:

Hi AJ,

Sub Tester07()

On Error Resume Next
Columns("A:A").SpecialCells(xlBlanks).EntireRow.De lete
On Error GoTo 0

End Sub

--

---
Regards,
Norman



"ddiicc" wrote in message
...
Hi everyone,

Yesterday, Norman gave mi the solution to my subject stated the above.

Columns("A:A").SpecialCells(xlBlanks).EntireRow.De lete

The writings stated the above works... but I am facing another problem
which
is if when worksheet happens to be empty with no datas, so how am I gonna
continue from there?? cos the writings above only works if there is datas
in
the worksheet.

AJ




Reply
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
Hpw do I delete multiple empty rows found between filled rows? Bill Excel Worksheet Functions 2 November 15th 09 07:12 PM
macro to delete rows if cell blank in column puiuluipui Excel Discussion (Misc queries) 4 October 15th 09 05:22 PM
Macro to add a blank row when a difference between rows is found Aus-JN Excel Discussion (Misc queries) 1 March 8th 09 05:24 AM
Delete Rows when Blanks are found in Column A:A ddiicc Excel Programming 4 August 4th 05 10:46 AM
macro to delete entire rows when column A is blank ...a quick macro vikram Excel Programming 4 May 3rd 04 08:45 PM


All times are GMT +1. The time now is 06:18 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"