ChristineJ
Well-known Member
- Joined
- May 18, 2009
- Messages
- 761
- Office Version
- 365
- Platform
- Windows
I'd like to adjust this line of code so that rather typing in the range of cells in the VBA, the range of cells comes from the value in cell G5.
Set myRange = Range("A1, B3, K12, L2:L6")
Cell G5 contains the value A1, B3, K12, L2:L6, (with a comma at the end)
This does not work, but something to this effect: Set myRange = Range("G5").Value (plus add quotes and remove last comma...)
Thanks!
Set myRange = Range("A1, B3, K12, L2:L6")
Cell G5 contains the value A1, B3, K12, L2:L6, (with a comma at the end)
This does not work, but something to this effect: Set myRange = Range("G5").Value (plus add quotes and remove last comma...)
Thanks!