Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default MACRO range find last row

Hi,
I want to write Macro which finds LAST_ROW_NUMBER and then inserts it into a
RANGE for PRINTING or SORTING
i.e. rows keep adding daily and for Sort Macro Range I need the
LAST_ROW_NUMBER
right now I do it with a DIM and INPUTbox but I want to do it without manual
interface.
thanks
Helmut
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default MACRO range find last row


LastRow = Cells(Rows.Count,"A").End(xlUp).Row

assuming you are looking in column A

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Helmut" wrote in message
...
Hi,
I want to write Macro which finds LAST_ROW_NUMBER and then inserts it into

a
RANGE for PRINTING or SORTING
i.e. rows keep adding daily and for Sort Macro Range I need the
LAST_ROW_NUMBER
right now I do it with a DIM and INPUTbox but I want to do it without

manual
interface.
thanks
Helmut



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
Macro to find value and then copy associated range hnyb1 Excel Discussion (Misc queries) 1 December 31st 09 04:09 PM
Macro to find a range that varies. Paul Excel Programming 4 November 29th 05 11:38 AM
macro to find out the last cell in a range vikram Excel Programming 1 April 30th 04 06:53 AM
Using a Macro to find a value in a range and activate it Travis Excel Programming 4 April 8th 04 08:49 PM
Macro to find the 6th occurrence and move range cynthia Excel Programming 0 January 22nd 04 03:48 AM


All times are GMT +1. The time now is 03:41 AM.

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"