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

Hi,
If I use a macro (and button) to go from the current active cell (currently
C50) to a chart which is on row 500 or so, how can I use code (macro &
button) to go back up to the next blank cell in column C?

There may be an easier way to do this but the summary is to click a button
to go down to the chart and another button by the chart to go back up to the
next blank cell.

thanks,
--
Traa Dy Liooar

Jock
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Active cell hunt

hi
"next blank Cell in column C". meaning that there are no blanks cell from C1
to the bottom of the collumn.
sub gotoCbottom()
Range("C1").End(xlDown).Offset(1, 0).Activate
end sub

Note: the Activecell is where ever the curser is. you don't "goto" the
activecell. you are already there.
Regards
FSt1

"Jock" wrote:

Hi,
If I use a macro (and button) to go from the current active cell (currently
C50) to a chart which is on row 500 or so, how can I use code (macro &
button) to go back up to the next blank cell in column C?

There may be an easier way to do this but the summary is to click a button
to go down to the chart and another button by the chart to go back up to the
next blank cell.

thanks,
--
Traa Dy Liooar

Jock

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 440
Default Active cell hunt

Works a treat. Thanks
--
Traa Dy Liooar

Jock


"FSt1" wrote:

hi
"next blank Cell in column C". meaning that there are no blanks cell from C1
to the bottom of the collumn.
sub gotoCbottom()
Range("C1").End(xlDown).Offset(1, 0).Activate
end sub

Note: the Activecell is where ever the curser is. you don't "goto" the
activecell. you are already there.
Regards
FSt1

"Jock" wrote:

Hi,
If I use a macro (and button) to go from the current active cell (currently
C50) to a chart which is on row 500 or so, how can I use code (macro &
button) to go back up to the next blank cell in column C?

There may be an easier way to do this but the summary is to click a button
to go down to the chart and another button by the chart to go back up to the
next blank cell.

thanks,
--
Traa Dy Liooar

Jock

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
Row select mode to highlight active row of active cell Bart Fay[_2_] Excel Discussion (Misc queries) 0 May 11th 10 09:34 PM
Setting up Treasure Hunt spreadsheet Rachael Excel Discussion (Misc queries) 11 September 13th 08 02:06 AM
I need to sort an active sheet using the col of the active cell HamFlyer Excel Programming 3 June 6th 06 07:25 PM
commandbar hunt defj Excel Programming 2 November 17th 03 11:40 PM
Code to Hunt Linked Cells Phil Hageman Excel Programming 2 July 16th 03 01:31 PM


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