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?

Hi, i'm new to excel programming, and so this is probably really simpl
but how can i find out what row is currently selected?

what i want to do is copy the text from column 1 on sheet1 to a textbo
on sheet3.

i've been trying debug.print Sheet1.Cells.Row but it always returns 1
Please help

thanks, sam

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Current Row?

Hi
try
msgbox activecell.row

-----Original Message-----
Hi, i'm new to excel programming, and so this is probably

really simple
but how can i find out what row is currently selected?

what i want to do is copy the text from column 1 on

sheet1 to a textbox
on sheet3.

i've been trying debug.print Sheet1.Cells.Row but it

always returns 1.
Please help

thanks, sam.


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

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Current Row?

Hi
This macro stored in the ThisWorkbook object will display the current
selection row:

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target
As Range)
MsgBox Selection.Row
End Sub

Regards
Andrew B



"Chrome " wrote in message
...
Hi, i'm new to excel programming, and so this is probably really simple
but how can i find out what row is currently selected?

what i want to do is copy the text from column 1 on sheet1 to a textbox
on sheet3.

i've been trying debug.print Sheet1.Cells.Row but it always returns 1.
Please help

thanks, sam.


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



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Current Row?

Hey thanks works perfectly... and was so simple :D

thanks again

--
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
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
current row - VBA chrisdarl[_4_] Excel Programming 7 April 26th 04 10:21 PM


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