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

In excel , through visual basic program how do i know row number / column
number of active cell
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default excel


Sub demo()

MsgBox "Row " & ActiveCell.Row
MsgBox "Column " & ActiveCell.Column

End Sub

"hari" wrote:

In excel , through visual basic program how do i know row number / column
number of active cell

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default excel

There is nothing mysterious or magical about the ActiveCell... it is a range
just like Range("B1") or Cells(1,2) are... and it has the same properties as
do all range objects which include Row and Column...

MsgBox "(Row, Col) = (" & ActiveCell.Row & ", " & ActiveCell.Column & ")"

--
Rick (MVP - Excel)


"hari" wrote in message
...
In excel , through visual basic program how do i know row number / column
number of active cell


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



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