Livin404
Well-known Member
- Joined
- Jan 7, 2019
- Messages
- 743
- Office Version
- 365
- 2019
- Platform
- Windows
Good evening, I'm trying to add brackets to data () in a specific Column C. I had several formulas that nearly worked, one that put brackets around everything including way past rows that had any data. I also had one where I can highlight and select, or fill in the block. I'm looking for one that will put brackets around only cells with data. I tried something like, but that just gets me further away. Thank you,
VBA Code:
Sub Add_Brackets ()
With ActiveSheet
With Range("C1", Range("C" & Rows.Count).End(xlUp))
cell.Value = "(" & cell.Value & ")"
On Error Resume Next
End With
End With
End Sub