I've written some VBA to create a new sheet based on a 'master' sheet then autofilter the new sheet according to certain criteria. This obviously hides some of the unwanted rows leaving the text in other rows visible.
I now want to change the width of some columns so that they will fit the text in the VISIBLE rows only. I thought this would be easy but I can't find a solution. I've tried Autofit but this resets the column width to fit the text in both visible and hidden rows. This leaves me with a lot of white space.
Can anyone help me on this please? I've googled the web without much joy.
I now want to change the width of some columns so that they will fit the text in the VISIBLE rows only. I thought this would be easy but I can't find a solution. I've tried Autofit but this resets the column width to fit the text in both visible and hidden rows. This leaves me with a lot of white space.
Can anyone help me on this please? I've googled the web without much joy.