I'm having some trouble solving it with my very limited VBA skills.
I have a spreadsheet with data (linked with formulas, so that it cahnges all the time). In order to export numbers to another program, I have to save it with a certain format, as a txt file.
I want to make a macro to hide several rows and columns so that then my other macro I can "select visible" and paste it ito a clean file to save as a text file..
For instance:
- Hide all rows that have 0 in certain columns.
- Hide all columns with a certain character in the first row. (S or C, depending on the value of a certain cell).
I have tried using autofilter (eg. take column BZ, filter 0, select all visible rows, hide selected) but then when I remove the filter, it shows all the rows, including the ones that have 0 in that column.
I know that this has to be easy, but I can't figure it out.
Thanks guys.
I have a spreadsheet with data (linked with formulas, so that it cahnges all the time). In order to export numbers to another program, I have to save it with a certain format, as a txt file.
I want to make a macro to hide several rows and columns so that then my other macro I can "select visible" and paste it ito a clean file to save as a text file..
For instance:
- Hide all rows that have 0 in certain columns.
- Hide all columns with a certain character in the first row. (S or C, depending on the value of a certain cell).
I have tried using autofilter (eg. take column BZ, filter 0, select all visible rows, hide selected) but then when I remove the filter, it shows all the rows, including the ones that have 0 in that column.
I know that this has to be easy, but I can't figure it out.
Thanks guys.