JumboCactuar
Well-known Member
- Joined
- Nov 16, 2016
- Messages
- 788
- Office Version
- 365
- Platform
- Windows
Hi,
i have the following working directly on worksheet
✔;;;@
but the problem is when trying to reapply the formatting with VBA, as the tick isnt recognised.
example, when i record myself applying the formatting, the output is:
Does anyone have a way around this ?
Reason i need to reapply with VBA is due to formatting being lost when web table is refreshed
Any help appreciated
update:
i realised i can work around this by having a set column with the formatting, then VBA to copy the formats over, like:
though still looking for a better solution
thankyou
i have the following working directly on worksheet
✔;;;@
but the problem is when trying to reapply the formatting with VBA, as the tick isnt recognised.
example, when i record myself applying the formatting, the output is:
Code:
Range("A1:A23").NumberFormat = "?;;;@"
Does anyone have a way around this ?
Reason i need to reapply with VBA is due to formatting being lost when web table is refreshed
Any help appreciated
update:
i realised i can work around this by having a set column with the formatting, then VBA to copy the formats over, like:
Code:
Sub Macro2()
Range("A1:A17").Copy: Range("I1").PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
End Sub
though still looking for a better solution
thankyou
Last edited: