Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Active cell, row, column, worksheet, etc

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default Active cell, row, column, worksheet, etc

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Active cell, row, column, worksheet, etc

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
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
How do I get row and column of active cell to highlight? chappi Excel Discussion (Misc queries) 2 August 19th 09 10:21 PM
How to locate the Row and Column of an Active Cell Fred Excel Discussion (Misc queries) 1 December 7th 05 05:55 PM
Report All Column Widths In Active Worksheet - Corrected DataFreakFromUtah Excel Programming 1 July 22nd 04 01:13 PM
Report All Column Widths In Active Worksheet - an example DataFreakFromUtah Excel Programming 2 July 21st 04 06:09 PM
copying the column of the active cell to another column Paul James[_5_] Excel Programming 2 February 26th 04 08:04 PM


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