Thought this one would be easy, not getting any results or errors and not sure where to go from here. Most of what I can find on concatenating doesn't concern cell addresses. Trying to get all the populated cell addresses in range D3:GE50 together in a single cell (Sheet2.Range("A2"), after which I want to copy those ranges from Sheet1 to the same ranges on Sheet2 but I can't seem to get over this first hurdle.
Regards,
Jordan
Code:
Private Sub CommandButtonExtractRefs_Click()
Dim x As String
For Each Cell In Range("D3:GE50")
If Cell.Value <> "" Then
x = x & Cell.Address & ","
Next Cell
Sheet2.Range("A2") = x
End Sub
Regards,
Jordan
Last edited: