What's the proper syntax when using a named data range in VBA. Here's what I got so far...then I come to grinding halt. It simply does not recognize the value that's in B28. If I put the named range within the Range function it works perfect.
Private Sub CommandButton1_Click()
Dim source As Range
Dim fdata As String
fdata = Range("B28").Text
Set source = Range("B28")
source.Copy
Range("A40").Select
Selection.PasteSpecial
End Sub
I'm starting to pull my hair out over this one!
Private Sub CommandButton1_Click()
Dim source As Range
Dim fdata As String
fdata = Range("B28").Text
Set source = Range("B28")
source.Copy
Range("A40").Select
Selection.PasteSpecial
End Sub
I'm starting to pull my hair out over this one!