I am trying to export specific columns from a defined table to CSV. If I use the following only the first column is output:
How do I get rngToSave to be multiple columns that are not necessarily contiguous?
Code:
With sh.ListObjects("MasterData")
Set rngToSave = Application.Union(.ListColumns("FATHER'S MOBILE").DataBodyRange, .ListColumns("CENTRE").DataBodyRange)
End With
How do I get rngToSave to be multiple columns that are not necessarily contiguous?