G
Guest
Problem:
I want to move to cell A1 (sheet 1) when a certain nr occurs in cell B1, for
ex 1. Cell B1 contains a formula that refers to a cell in sheet 2. My problem
is that this doesn´t happen until I do anything in sheet 1 like use one arrow
or klick with the mouse in a cell.
How can I activate sheet 1 within the macro below?
The macro looks like this:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Select Case Range("B1")
Case Is = 1 "The macro feel nr 1 but do not execute
until anything
Range("A1").Select happens in sheet 1"
End Select
Hope for a swift answer
BFSWE
End Sub
I want to move to cell A1 (sheet 1) when a certain nr occurs in cell B1, for
ex 1. Cell B1 contains a formula that refers to a cell in sheet 2. My problem
is that this doesn´t happen until I do anything in sheet 1 like use one arrow
or klick with the mouse in a cell.
How can I activate sheet 1 within the macro below?
The macro looks like this:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Select Case Range("B1")
Case Is = 1 "The macro feel nr 1 but do not execute
until anything
Range("A1").Select happens in sheet 1"
End Select
Hope for a swift answer
BFSWE
End Sub