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.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.