Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have developed a game in Excel. Successful completion causes a formula to
return 'True'. I want this result to launch a macro. As background the macro will transport the player to another sheet. Any advice will be very much appreciated |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Use the worksheet_change event Private Sub Worksheet_Change(ByVal Target As Range) Set MyCell = Range("A1") 'your formula in A1 If not intersect (Target, MyCell) is nothing then 'ignore unless MyCell changes If MyCell.Value = 2 then 'value from formula call myMacro End if End if End Sub You find this event when you double click the sheet name in the visual basic editor and choose Worksheet from the dropdown. regards Paul On May 1, 11:30*am, Charlie Betz <Charlie wrote: I have developed a *game in Excel. Successful completion causes a formula to return 'True'. I want this result to launch a macro. As background the macro will transport the player to another sheet. Any advice will be very much appreciated |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Right click sheet tabview codepaste this. Now if you change cell e1 to 2
you goto sheet 9 Private Sub Worksheet_Change(ByVal Target As Range) 'correct word wrap if necessary If Target.Address = "$E$1" And Target = 2 Then Sheets("sheet9").Select End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "Charlie Betz" <Charlie wrote in message ... I have developed a game in Excel. Successful completion causes a formula to return 'True'. I want this result to launch a macro. As background the macro will transport the player to another sheet. Any advice will be very much appreciated |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Showing Formula and Result | Excel Programming | |||
How can I replace a formula with its result using a macro? | Excel Programming | |||
Macro launch - Button vs Manual launch , has different results. | Excel Programming | |||
Launch Macro on Result of Validation | Excel Programming | |||
Launch Macro in Access via Macro running in Excel??? | Excel Programming |