Thread
:
cell value from different worksheet
View Single Post
#
3
Posted to microsoft.public.excel.programming
Nigel[_2_]
external usenet poster
Posts: 735
cell value from different worksheet
Your code should work but no need to select
With Sheets("Sample Selection")
.Unprotect
.Cells(2,5) = Sheets("SampleCalc").Cells(3,45)
End With
--
Regards,
Nigel
"JPCPA" wrote in message
...
I have a user form that, based on the option button selected, a value needs
to be returned from a different cell in a separate worksheet. I get an
out
of range error when I try the following code:
Sheets("Sample Selection").Select
ActiveSheet.Unprotect
Cells(2, 5) = Worksheets("SampleCalc").Cells(3, 45)
What am I doing wrong?
--
JP
Reply With Quote
Nigel[_2_]
View Public Profile
Find all posts by Nigel[_2_]