Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Current year and current week number | Excel Discussion (Misc queries) | |||
Add to current cell value | Excel Discussion (Misc queries) | |||
Having the current time inserted w/o updating the current time | Excel Worksheet Functions | |||
Can I automatically enter the current date or current time into a | New Users to Excel | |||
current row - VBA | Excel Programming |