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


super simple q

i want to save the row number at the end of the list of the data. what
is the command for that?

i can't use selection.rows.count because its not a selection of
multiple rows..


thanks


--
narutard
------------------------------------------------------------------------
narutard's Profile: http://www.excelforum.com/member.php...o&userid=25111
View this thread: http://www.excelforum.com/showthread...hreadid=467858

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default row location

it depends on your sheet / data list layout - where is the list??
Activesheet.Cells.SpecialCells(xlCellTypeLastCell) .Row
is my favorite for the last used row on a sheet.


"narutard" wrote:


super simple q

i want to save the row number at the end of the list of the data. what
is the command for that?

i can't use selection.rows.count because its not a selection of
multiple rows..


thanks


--
narutard
------------------------------------------------------------------------
narutard's Profile: http://www.excelforum.com/member.php...o&userid=25111
View this thread: http://www.excelforum.com/showthread...hreadid=467858


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default row location


i 'm looking for

1 a
2 b
3 c
4 d
5 e
6 f
...
485 zzzz


so...i want the command that figures out which row zzzz is


--
narutard
------------------------------------------------------------------------
narutard's Profile: http://www.excelforum.com/member.php...o&userid=25111
View this thread: http://www.excelforum.com/showthread...hreadid=467858

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default row location

Hi Narutard,

Try:

Dim rw As Long

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

---
Regards,
Norman



"narutard" wrote in
message ...

i 'm looking for

1 a
2 b
3 c
4 d
5 e
6 f
..
485 zzzz


so...i want the command that figures out which row zzzz is


--
narutard
------------------------------------------------------------------------
narutard's Profile:
http://www.excelforum.com/member.php...o&userid=25111
View this thread: http://www.excelforum.com/showthread...hreadid=467858



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 - save to current location vs excel default location leezard Excel Discussion (Misc queries) 0 October 28th 08 03:04 PM
location pierre Excel Discussion (Misc queries) 9 May 25th 08 07:32 PM
Tab location [email protected] Excel Discussion (Misc queries) 4 June 26th 07 03:26 AM
Go To Location choice[_2_] Excel Programming 1 November 14th 04 09:02 PM
xlb location jejyjose Excel Programming 5 March 4th 04 02:51 AM


All times are GMT +1. The time now is 08:50 PM.

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"