Hi everyone.
I have the following code which copies the named contiguous columns from the table, and I have other code which pastes the copied data onto another sheet. It works like a charm:
I want to add a couple of non-adjacent columns to the copy function; let's call them Column_6 and Column_9, so that I end up with something like this (which obviously doesn't work):
Is someone able to tell me what the symbol and formatting should be, for the code that goes between [Column_4] and [Column_6]? I've tried using @, & and commas as the separator (as suggested from another forum) and they didn't work. I don't know a lick about VBA and I picked up this code from another location which I now can't find, so that brings me here. Pointing me to a good source example is also appreciated, because I have Google'd to the ends of the earth and can't find the one I originally used.
Many thanks
I have the following code which copies the named contiguous columns from the table, and I have other code which pastes the copied data onto another sheet. It works like a charm:
VBA Code:
Range("Table1[[#All],[Column_1]:[Column_4]]").Copy
I want to add a couple of non-adjacent columns to the copy function; let's call them Column_6 and Column_9, so that I end up with something like this (which obviously doesn't work):
VBA Code:
Range("Table1[[#All],[Column_1]:[Column_4],[Column_6],[Column_9]]").Copy
Is someone able to tell me what the symbol and formatting should be, for the code that goes between [Column_4] and [Column_6]? I've tried using @, & and commas as the separator (as suggested from another forum) and they didn't work. I don't know a lick about VBA and I picked up this code from another location which I now can't find, so that brings me here. Pointing me to a good source example is also appreciated, because I have Google'd to the ends of the earth and can't find the one I originally used.
Many thanks