Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When coding I use this alot : Worksheets("sheet1").Cells(y,x) or .row(y) or
..column(x) is there code to use to choose the active row, column, cells, or worksheet....so that i don't have to change the worksheet name every time I want to use some code I wrote on another sheet? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
If you go into a module and open the immediate window and the library, you can try these things out. ?activesheet.name Sheet1 ?activecell.address $A$1 ?activecell.Row 1 ?activecell.Column 1 This will help you reference objects. Hope this helps. Thanks, "sip8316" wrote: When coding I use this alot : Worksheets("sheet1").Cells(y,x) or .row(y) or .column(x) is there code to use to choose the active row, column, cells, or worksheet....so that i don't have to change the worksheet name every time I want to use some code I wrote on another sheet? Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You will kick your self when you read this.
Try Activesheet Activecell Activecell.row activecell.column Chris "sip8316" wrote in message ... When coding I use this alot : Worksheets("sheet1").Cells(y,x) or .row(y) or .column(x) is there code to use to choose the active row, column, cells, or worksheet....so that i don't have to change the worksheet name every time I want to use some code I wrote on another sheet? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I get row and column of active cell to highlight? | Excel Discussion (Misc queries) | |||
How to locate the Row and Column of an Active Cell | Excel Discussion (Misc queries) | |||
Report All Column Widths In Active Worksheet - Corrected | Excel Programming | |||
Report All Column Widths In Active Worksheet - an example | Excel Programming | |||
copying the column of the active cell to another column | Excel Programming |