Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default determine activecell and move to it after running ohter sub...

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
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default determine activecell and move to it after running ohter sub...


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

"SpeeD" wrote in message
...
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


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default determine activecell and move to it after running ohter sub...

Thnsks Nigel!

Works great!

SpeeD

"Nigel" wrote:

Try using

Cells(r,c).Select



--

Regards,
Nigel




"SpeeD" wrote in message
...
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
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
Determine if Excel is running in a browser window John Michl Excel Programming 3 October 30th 06 07:01 PM
Determine If An Application is Already Running BobT Excel Programming 1 March 31st 05 07:59 PM
VB TAB doesn't move activecell?? Ben W Excel Programming 2 January 17th 05 03:27 PM
Move ActiveCell down 12 then add up 11 above.... [email protected] Excel Programming 2 June 22nd 04 04:45 PM
How to determine if instance of Excel is running anandmr Excel Programming 7 December 23rd 03 05:24 PM


All times are GMT +1. The time now is 12:26 AM.

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"