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

Hi, i am wanting to find the row number of a active cell. can anyon
give me some code to be able to do this?
Many thanks Chris

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default current row - VBA

Hi Chris

Use

Dim ActiveRow as Long
ActiveRow = Activecell.Row
msgbox ActiveRow


This gives the numeric value of the Row that the cell is on

HTH

Davi

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default current row - VBA

ActiveCell.Row

Troy

"chrisdarl " wrote in message
...
Hi, i am wanting to find the row number of a active cell. can anyone
give me some code to be able to do this?
Many thanks Chris.


---
Message posted from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default current row - VBA

Chris,

Activecell.Row

Cheers, Pete

-----Original Message-----
Hi, i am wanting to find the row number of a active cell.

can anyone
give me some code to be able to do this?
Many thanks Chris.


---
Message posted from http://www.ExcelForum.com/

.

  #5   Report Post  
Posted to microsoft.public.excel.programming
jim jim is offline
external usenet poster
 
Posts: 19
Default current row - VBA

micro = ActiveCell.Row

where micro is a variable



-----Original Message-----
Hi, i am wanting to find the row number of a active cell.

can anyone
give me some code to be able to do this?
Many thanks Chris.


---
Message posted from http://www.ExcelForum.com/

.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default current row - VBA

What about this;

Sub RowNnumber()
Dim RowNumber As Long
RowNumber = ActiveCell.row
MsgBox ("Row number of the active cell is " & ActiveCell.row)
End Sub

Henk

chrisdarl wrote in message ...
Hi, i am wanting to find the row number of a active cell. can anyone
give me some code to be able to do this?
Many thanks Chris.


---
Message posted from http://www.ExcelForum.com/

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default current row - VBA

Hey, try this:
= ActiveCell.Row
-----Original Message-----
Hi, i am wanting to find the row number of a active cell.

can anyone
give me some code to be able to do this?
Many thanks Chris.


---
Message posted from http://www.ExcelForum.com/

.

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default current row - VBA

Thanks everyone for all your help its working fine now.
Chri

--
Message posted from http://www.ExcelForum.com

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
Current year and current week number Grey Old Man[_2_] Excel Discussion (Misc queries) 11 December 8th 09 06:30 PM
Add to current cell value Ray D. Excel Discussion (Misc queries) 1 February 18th 09 12:11 AM
Current Run Rate Coley Excel Worksheet Functions 6 February 7th 08 03:57 AM
Having the current time inserted w/o updating the current time sherobot Excel Worksheet Functions 2 October 2nd 06 05:05 PM
Can I automatically enter the current date or current time into a Ben New Users to Excel 7 October 19th 05 03:38 PM


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