Right click the sheet tab where you have the validation in B7, select view
code and paste in the code
press Alt + Q to close the VBA editor. Now try it
--
Regards,
Peo Sjoblom
Adrian Phelan said:
I don't know how to put the code behind the worksheet - Can you tell me what to do?
I have copied the code below where i have changed the cell reference to
"B7" every thing seems fine to me - everyones help is much appreciated! It
is now 02.57 hrs in london and i have been at this since 21.00 hrs and i am
fading fast!
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$B$7" Then
ActiveWindow.Zoom = 120
Else
ActiveWindow.Zoom = 100
End If
End Sub
----- Dave Peterson wrote: -----
You may want to post the code.
But my guesses are these:
#1. You didn't put the code behind the worksheet?????
#2. When you changed this line:
If Target.Address = "$A$2" Then
you either left the $'s out or used a lower case letter.
Any chance I guessed right?
worksheet. what i did exactly was open the worksheet, right click the
worksheet tab, opened the view code box which opened a design sheet & i then
pasted the code on to the open sheet then closed this sheet. Should i have
press an activate or update button or something? I have tried to view the
page in normal and page break preview to see it this would have any effect
but still no joy. I am using Office XP. Any ideas where i am going wrong? the
pasted the code as given into the "view code" section of the worksheet.
Nothing different seems to be happening. I closed the programme and started
it up again but still nothing. Should i have taken any other steps to
actually activate the code other than just copy & paste it?