I'm exporting a datasheet to Excel via vba thanks to Nick67 and Capricorn1. In that code, I exempt those columns from the datasheet that have been hidden by the user. Now I would like to take that one step further and only export the columns that have selected by the user. For example, if the user selects several columns that are next to each other and only want to export them.
Is there a way to identify which columns are selected? I assume so, since the Find functionality works on "selected" columns. I just have not been able to identify the specific property of the datasheet or of the controls collection to identify.
ASKER
We resolved the issue of which columns are visible and the sequence in my previous question. But it looks like SelLeft and SelWidth will do what I'm looking for. I'll play around with it a bit later