Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Active cell as range

How can I make the code below refer to the current cell that is active?


Set rng = Range("A200")


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Active cell as range

set rng = activecell
--
HTH...

Jim Thomlinson


"Patrick Simonds" wrote:

How can I make the code below refer to the current cell that is active?


Set rng = Range("A200")



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Active cell as range

This did not work. I should add a little more explanation of what I want to
achieve.

If the current active cell is A5 (R5C1), I need that to be the Range set for
the other worksheets the macro cycles through. But the Range set needs to be
what ever the active cell is at the time the macro is run.
"Jim Thomlinson" wrote in message
...
set rng = activecell
--
HTH...

Jim Thomlinson


"Patrick Simonds" wrote:

How can I make the code below refer to the current cell that is active?


Set rng = Range("A200")





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Active cell as range

s = ActiveCell.Address
for each sh in Thisworkbook.Worksheets
set rng = sh.Range(s)

Next

--
Regards,
Tom Ogilvy

"Patrick Simonds" wrote in message
...
This did not work. I should add a little more explanation of what I want

to
achieve.

If the current active cell is A5 (R5C1), I need that to be the Range set

for
the other worksheets the macro cycles through. But the Range set needs to

be
what ever the active cell is at the time the macro is run.
"Jim Thomlinson" wrote in

message
...
set rng = activecell
--
HTH...

Jim Thomlinson


"Patrick Simonds" wrote:

How can I make the code below refer to the current cell that is active?


Set rng = Range("A200")







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Active cell as range

Thank you

"Tom Ogilvy" wrote in message
...
s = ActiveCell.Address
for each sh in Thisworkbook.Worksheets
set rng = sh.Range(s)

Next

--
Regards,
Tom Ogilvy

"Patrick Simonds" wrote in message
...
This did not work. I should add a little more explanation of what I want

to
achieve.

If the current active cell is A5 (R5C1), I need that to be the Range set

for
the other worksheets the macro cycles through. But the Range set needs to

be
what ever the active cell is at the time the macro is run.
"Jim Thomlinson" wrote in

message
...
set rng = activecell
--
HTH...

Jim Thomlinson


"Patrick Simonds" wrote:

How can I make the code below refer to the current cell that is
active?


Set rng = Range("A200")









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
use active cell to determine range Gizmo Excel Discussion (Misc queries) 2 March 31st 08 04:55 AM
Clearly seeing active cell in a range dsa Excel Discussion (Misc queries) 2 March 24th 08 03:22 PM
Verify Active Cell is within a Range that changes as cell is delet Shannon Excel Programming 2 February 11th 06 12:01 AM
find range name for active cell Len Excel Programming 2 November 22nd 05 02:37 PM
Active cell is within a specific range Todd Huttenstine Excel Programming 1 November 1st 04 04:57 PM


All times are GMT +1. The time now is 01:39 PM.

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"