PC Review


Reply
Thread Tools Rate Thread

determine activecell and move to it after running ohter sub...

 
 
SpeeD
Guest
Posts: n/a
 
      25th Feb 2009
Hi.

I need to determine the activecell at some point and move to it after other
sub as run. how can i do this? i´ve tried the following without success...

r = ActiveCell.Row
c = ActiveCell.Column


Run "Formatar_fundo_original"
Range(c & r).Select

Thanks
SpeeD
 
Reply With Quote
 
 
 
 
Nigel
Guest
Posts: n/a
 
      25th Feb 2009
Try using

Cells(r,c).Select



--

Regards,
Nigel
(E-Mail Removed)



"SpeeD" <(E-Mail Removed)> wrote in message
news:2527A533-5223-45FA-89F3-(E-Mail Removed)...
> Hi.
>
> I need to determine the activecell at some point and move to it after
> other
> sub as run. how can i do this? i´ve tried the following without success...
>
> r = ActiveCell.Row
> c = ActiveCell.Column
>
>
> Run "Formatar_fundo_original"
> Range(c & r).Select
>
> Thanks
> SpeeD


 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      25th Feb 2009

try this idea

Sub gobacktocell()
Dim myadd As String
mysht = ActiveSheet.Name
myrng = ActiveCell.Address
Application.Goto Sheets("sheet4").Range("a1")
MsgBox "hi"
Application.Goto Sheets(mysht).Range(myrng)
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"SpeeD" <(E-Mail Removed)> wrote in message
news:2527A533-5223-45FA-89F3-(E-Mail Removed)...
> Hi.
>
> I need to determine the activecell at some point and move to it after
> other
> sub as run. how can i do this? i´ve tried the following without success...
>
> r = ActiveCell.Row
> c = ActiveCell.Column
>
>
> Run "Formatar_fundo_original"
> Range(c & r).Select
>
> Thanks
> SpeeD


 
Reply With Quote
 
SpeeD
Guest
Posts: n/a
 
      25th Feb 2009
Thnsks Nigel!

Works great!

SpeeD

"Nigel" wrote:

> Try using
>
> Cells(r,c).Select
>
>
>
> --
>
> Regards,
> Nigel
> (E-Mail Removed)
>
>
>
> "SpeeD" <(E-Mail Removed)> wrote in message
> news:2527A533-5223-45FA-89F3-(E-Mail Removed)...
> > Hi.
> >
> > I need to determine the activecell at some point and move to it after
> > other
> > sub as run. how can i do this? i´ve tried the following without success...
> >
> > r = ActiveCell.Row
> > c = ActiveCell.Column
> >
> >
> > Run "Formatar_fundo_original"
> > Range(c & r).Select
> >
> > Thanks
> > SpeeD

>
>

 
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
determine whether the activecell is on the top or bottom John Smith Microsoft Excel Programming 3 31st Aug 2009 02:29 AM
determine if activecell in specific worksheet and column Scotty9349 Microsoft Excel Programming 6 1st Jul 2009 09:09 PM
If activecell.column = variable then activecell,offset (0,1) Battykoda via OfficeKB.com Microsoft Excel Misc 1 2nd Oct 2007 08:05 PM
VB TAB doesn't move activecell?? Ben W Microsoft Excel Programming 2 17th Jan 2005 03:27 PM
Move ActiveCell down 12 then add up 11 above.... noSpam@thanks.com Microsoft Excel Programming 2 22nd Jun 2004 04:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:43 PM.