PC Review


Reply
Thread Tools Rate Thread

Automatic navigation based on cell text value

 
 
bluegrassstateworker
Guest
Posts: n/a
 
      27th Jul 2006
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??

 
Reply With Quote
 
 
 
 
L. Howard Kittle
Guest
Posts: n/a
 
      27th Jul 2006
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

"bluegrassstateworker" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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??
>



 
Reply With Quote
 
bluegrassstateworker
Guest
Posts: n/a
 
      28th Jul 2006
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

L. Howard Kittle wrote:
> 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
>
> "bluegrassstateworker" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >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??
> >


 
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
Automatic text insertion based on who mail is sent to nitramfl@hotmail.com Microsoft Outlook Discussion 1 2nd Jun 2007 03:57 AM
select text in cell based on text from another cell, paste the text at the begining of a thrid cell, etc... jsd219 Microsoft Excel Programming 0 19th Oct 2006 05:04 PM
Re: Automatic Fill of Data Based on Another Cell Frank Kabel Microsoft Excel Worksheet Functions 0 9th Sep 2004 07:10 PM
Automatic File Name based on cell content Prangk Microsoft Excel Programming 7 3rd Apr 2004 10:43 PM
Deleting Rows based on text in cell & formatting cell based on text in column beside it =?Utf-8?B?U3RldmU=?= Microsoft Excel Programming 4 26th Feb 2004 03:31 PM


Features
 

Advertising
 

Newsgroups
 


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