Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Select next empty row from macro

I have the following in my macro:
Rows("27:27").Select

I need to change this statement so that it selects the next empty row in the
report. Can someone post the code for this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Select next empty row from macro

Let's say if the cell is empty in column A, the row is empty

cells(rows.count,1).End(xlup)(2).EntireRow.Select

--
Regards,
Tom Ogilvy


"rick_mc" wrote:

I have the following in my macro:
Rows("27:27").Select

I need to change this statement so that it selects the next empty row in the
report. Can someone post the code for this?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Select next empty row from macro

Hi Rick

If you must check more columns see
http://www.rondebruin.nl/last.htm

--

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


"rick_mc" wrote in message ...
I have the following in my macro:
Rows("27:27").Select

I need to change this statement so that it selects the next empty row in the
report. Can someone post the code for this?

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
Select next empty row from macro rick_mc Excel Programming 0 March 28th 07 01:10 AM
Macro to find empty cell and select range to print selected. [email protected] Excel Programming 1 May 15th 06 09:05 AM
how do i make a macro that will select all those cells that are empty VB Script for Excel Excel Programming 2 April 27th 06 09:06 AM
select down to the LAST non empty row Mike[_83_] Excel Programming 0 June 13th 04 08:57 AM
Macro to select non empty rows in a given range Mario Excel Programming 1 January 23rd 04 07:54 PM


All times are GMT +1. The time now is 10:34 PM.

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

About Us

"It's about Microsoft Excel"