Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try putting the code in Sheet "Index", not in sheet "3"
And replace "Sheet3" with just "3" if that is the name of the sheet to go to. Hope this helps / Lars-Åke On Mon, 5 Jan 2009 14:32:01 -0800, santaviga wrote: Hi, I have put this in sheet 3 code area but I cant get it to work when I select cell A3 on first sheet, first hsheet is called Index of Stock and all other sheets are only numbered 1,2,3,4,5,6,7,8,9,10 and so on till 150 Any idea what i'm doing wrong? Regards "Gary''s Student" wrote: Put this event macro in the worksheet code area: Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Intersect(Target, Range("A3")) Is Nothing Then Else Application.Goto reference:=Sheets("Sheet3").Range("A1") End If End Sub -- Gary''s Student - gsnu200823 "santaviga" wrote: Hi, I am looking for a formula or macro so that when an active cell is selected lets say cell A3 is selected excel will automatically go to a sheet number specified say Sheet 3. Any help would be much appreciated. Regards |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
use macro to copy formula with value and not formula without value | Excel Programming | |||
Formula to use in Macro | Excel Programming | |||
Is there a Formula or Macro for This? | Excel Discussion (Misc queries) | |||
Formula in macro causes macro to fail | Excel Programming | |||
Formula expected end of statement error, typing formula into cell as part of VBA macro | Excel Programming |