T Tang Aug 8, 2004 #1 I would like to check if a worksheet exist using excel formula, is there one like this: =if (Sheets("ABC") exist, "yes", "no") regards
I would like to check if a worksheet exist using excel formula, is there one like this: =if (Sheets("ABC") exist, "yes", "no") regards
F Frank Kabel Aug 8, 2004 #2 Hi try this workaround IF(ISERROR(INDIREKT("'sheetname'!A1")),"no","yes")
F Frank Kabel Aug 8, 2004 #4 Hi one way: public function sheet_exist(sname) as boolean dim wks as worksheet on error resume next set wks = activeworkbook.worksheets(sname) on error goto 0 sheet_exist = not wks is nothing end function
Hi one way: public function sheet_exist(sname) as boolean dim wks as worksheet on error resume next set wks = activeworkbook.worksheets(sname) on error goto 0 sheet_exist = not wks is nothing end function