ramanan1986
Registered User.
- Local time
- Today, 13:54
- Joined
- Mar 8, 2013
- Messages
- 10
Hi,
Does anyone know how to adjust the column width of the fields to best fit in a Query using vba codes?
Manually it can be done by selecting the Query - Click on More dropdown of the Reports section in the ribbon - Click on Column width - and select best fit as the option.
I want this to happen by a vba code and not manually doing it everytime because the field length changes as it is a dynamically created Query.
Any suggestions!!
Does anyone know how to adjust the column width of the fields to best fit in a Query using vba codes?
Manually it can be done by selecting the Query - Click on More dropdown of the Reports section in the ribbon - Click on Column width - and select best fit as the option.
I want this to happen by a vba code and not manually doing it everytime because the field length changes as it is a dynamically created Query.
Any suggestions!!