An Quala
Board Regular
- Joined
- Mar 21, 2022
- Messages
- 146
- Office Version
- 2021
- Platform
- Windows
Hello, what if I just to change the formats of 2 columns instead of updating for the whole sheet?
Columns D and F in "Sponsored Products Campaigns" and "Sponsored Brands Campaigns"
Columns D and E in "Sponsored Display Campaigns"
Only these columns not the whole sheets please,
Please help?
Columns D and F in "Sponsored Products Campaigns" and "Sponsored Brands Campaigns"
Columns D and E in "Sponsored Display Campaigns"
Only these columns not the whole sheets please,
Please help?
VBA Code:
Dim c As Range, va, x
For Each x In Split("Sponsored Products Campaigns|Sponsored Brands Campaigns|Sponsored Display Campaigns", "|")
Set c = Worksheets(x).UsedRange
If c.Address <> "$A$1" Then
va = c.Value
Worksheets(x).Cells.NumberFormat = "General"
c = va
End If
Next