Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I get a cell's row number

Hello all!

I have a rather simple question. I need to know a cell's
row number and put it in a variable.

Best Regards
Mattias



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 90
Default How do I get a cell's row number

activecell.Row

On Mon, 18 Aug 2003 23:03:37 -0700, "Mattias"
wrote:

I have a rather simple question. I need to know a cell's
row number and put it in a variable.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I get a cell's row number

Dim CellRow as Long
CellRow = Selection.Row

'OR'

CellRow= ActiveCell.Row

To see more, in the IDE step into the proc, open a
watchwindow (View/Watch Window) and drag ActiveCell into
it. In the watch window, click on the '+' and you'll see
more of the available properies

Patrick Molloy
Microsoft Excel MVP


-----Original Message-----
Hello all!

I have a rather simple question. I need to know a cell's
row number and put it in a variable.

Best Regards
Mattias



.

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
Get cell's number format category in VBA? dyowee Excel Discussion (Misc queries) 8 April 26th 23 03:43 AM
row= cell's row wptech Excel Worksheet Functions 3 July 11th 06 09:07 AM
How to change an other cell's value? Nirel Excel Discussion (Misc queries) 1 February 1st 06 11:20 AM
returning a cell's value and a corresponding value Force Flow Excel Worksheet Functions 2 November 24th 05 08:17 PM
cell's address of the largest number novio Excel Discussion (Misc queries) 1 April 9th 05 10:16 PM


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