PC Review


Reply
Thread Tools Rate Thread

Active cell hunt

 
 
Jock
Guest
Posts: n/a
 
      14th Dec 2007
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 With Quote
 
 
 
 
FSt1
Guest
Posts: n/a
 
      14th Dec 2007
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 With Quote
 
Jock
Guest
Posts: n/a
 
      14th Dec 2007
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Row select mode to highlight active row of active cell Bart Fay Microsoft Excel Misc 0 11th May 2010 09:34 PM
getting the selected range and active cell of a non active worksheetsheet GerryGerry Microsoft Excel Programming 7 23rd Sep 2009 05:22 PM
How to make active cell border prominent and keep entire active row selected for better visibility Radhika Microsoft Excel Programming 2 30th Dec 2008 08:51 AM
run macro although blinking cursor is active in an active cell bartman1980 Microsoft Excel Programming 1 20th Dec 2007 11:29 AM
referring to formula in a non active cell from active cell nickname Microsoft Excel Misc 1 21st Jun 2007 12:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:12 PM.