I have a code in a macro in excel. in the Sheet4
and in a part of the code i have:
Call functionA("file.csv", "A3", "Sheet2")
and i need that if the macro can not do the function Hidden a column
i intent with the following code, but not works
On Error Resume Next
all functionA("file.csv", "A3", "Sheet2")
Columns("Sheet3!V:V").EntireColumn.Hidden = True
first never hide the column of a specific sheet. And if there is a error continue, and it works fine. the problem is with i intent hide the column. I need hide the column only if a error appear
The problem is i read some csv files. the functionA load the file to excel. and if the file not exist. the excel must to continue and hide a column V of Sheet 3 because in V of Sheet 3 i have some dates that i calculate of the file that do not exist