LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default Macro to select non empty rows in a given range

Mario wrote:

A| B| C| D|
-----------------------------------
1|1,1 | 1,3 | |
-----------------------------------
2| | | |
-----------------------------------
3|3,1 | 3,3 | |
-----------------------------------
4| | | |

Is there a way to create a Macro that can select rows 1
and 3 (col B tru D). In other words a macro to select the
non empty rows in the range B1:D4.


Sub Macro1()
'
' Macro1 Macro
' Macro grabada el 23-01-2004 por Beto
'

'
Selection.SpecialCells(xlCellTypeBlanks).Select
End Sub

As you may see this code was obtained using the Macro Recorder. How?
Start saving, select the range, press F5 then click on Specials and
finally choose Blank Cells. Click Ok and stop recording. go to the VBE
and you'll see the same code.

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.

 
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
Select range then copy rows macro noggins Excel Discussion (Misc queries) 1 October 18th 09 11:06 PM
How can change range to select active rows instead of :=Range("S10 ldiaz Excel Discussion (Misc queries) 7 August 29th 08 03:52 PM
Select always same Rows range Nauj Solrac Excel Discussion (Misc queries) 2 April 26th 07 08:10 PM
Automatically select empty rows Michael S. Excel Worksheet Functions 2 October 18th 05 09:26 AM
Define Range in Deleting Empty Rows HamishM[_3_] Excel Programming 1 December 19th 03 01:17 AM


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