This problem CAN'T be this difficult.
I have two named ranges, period1 and period2, that are in a validation list. I can select either value - no problem. My problem is I can't seem to get that value into a range in order copy the corresponding cells. Here's what I have so far:
Private Sub CommandButton1_Click()
Dim source As Range
Set source = Range("A32") 'this is the cell with the validation list. It only contains the list "period1" and "period2"
source.Copy
Range("A40").Select
Selection.PasteSpecial
End Sub
All that happens is a value of "0" appears in cell A40. If I replace Range("A32") with Range("period1") it works perfectly.
I'd appreciate any help with this. I know the solution is probably very simple but sometimes I get tripped up on the obvious!
John
I have two named ranges, period1 and period2, that are in a validation list. I can select either value - no problem. My problem is I can't seem to get that value into a range in order copy the corresponding cells. Here's what I have so far:
Private Sub CommandButton1_Click()
Dim source As Range
Set source = Range("A32") 'this is the cell with the validation list. It only contains the list "period1" and "period2"
source.Copy
Range("A40").Select
Selection.PasteSpecial
End Sub
All that happens is a value of "0" appears in cell A40. If I replace Range("A32") with Range("period1") it works perfectly.
I'd appreciate any help with this. I know the solution is probably very simple but sometimes I get tripped up on the obvious!
John
Last edited: