Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Automatic navigation based on cell text value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bluegrassstateworker - 27 Jul 2006 20:48 GMT
I am creating a budget spreadsheet and wish to have a macro run
automatically and navigate to a specific cell of a different worksheet
based on a determined value of a cell.

For example, Cell A5 in the MAIN worksheet uses a drop down list from a
named range (RFP, MOA, PSC ...) from another worksheet.  If the value
is "RFP" then I wish to navigate automatically to cell A1 of the
REQUEST worksheet where additional information is completed related to
"RFP".   I'd reverse the process on the last cell of the REQUEST
worksheet, sending the user back to the MAIN worksheet to continue on.
Any ideas??
L. Howard Kittle - 27 Jul 2006 21:49 GMT
Perhaps something like this event macro in the worksheet named "Main".

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A5").Value = "REP" Then
   Sheets("Request").Activate
   Sheets("Request").Range("A1").Select
End If
End Sub

And this event macro in the worksheet named "Request".  Change column and
row to suit your last cell in the range REP.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 1 And Target.Row = 10 Then
   Sheets("Main").Activate
   Sheets("Main").Range("A5").Select
End If
End Sub

HTH
Regards,
Howard

>I am creating a budget spreadsheet and wish to have a macro run
> automatically and navigate to a specific cell of a different worksheet
[quoted text clipped - 7 lines]
> worksheet, sending the user back to the MAIN worksheet to continue on.
> Any ideas??
bluegrassstateworker - 28 Jul 2006 14:42 GMT
That did it!  Thanks!  Since I am likely to be moving and manipulating
the location of these cells, I am going to try to give them a name
rather than using the absolute cell reference. -- A

> Perhaps something like this event macro in the worksheet named "Main".
>
[quoted text clipped - 30 lines]
> > worksheet, sending the user back to the MAIN worksheet to continue on.
> > Any ideas??
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.