F
Fredrik Wahlgren
Hi
Here'sthe background. I have a master workbook with a user defined function
that will fetch values from other open workbooks. The UDF will loop over
dynamically built referernce to particular cells and return a sum. This is
something I made for someone who needed to build a report based on the
values from these workbooks. The workbooks themselves have been generated by
some third party software. and contain financial information. This UDF works
very well and has saved lots of time by collecting this information
automatically. Previosly, the user had to do this error prone job manually
which took several hours
The problem is that there will be an error if the worksheet doesn't exist.
Fro some reason, it seems as if certain worksheets within the workbook won't
be generated.
I have already tested that the workbook is open.
How can I check if a worksheet exists in a different workbook from a UDF?? I
already know the name of the workbook where the worksheet is supposed to be.
Thanks in advance,
Fredrik
Here'sthe background. I have a master workbook with a user defined function
that will fetch values from other open workbooks. The UDF will loop over
dynamically built referernce to particular cells and return a sum. This is
something I made for someone who needed to build a report based on the
values from these workbooks. The workbooks themselves have been generated by
some third party software. and contain financial information. This UDF works
very well and has saved lots of time by collecting this information
automatically. Previosly, the user had to do this error prone job manually
which took several hours
The problem is that there will be an error if the worksheet doesn't exist.
Fro some reason, it seems as if certain worksheets within the workbook won't
be generated.
I have already tested that the workbook is open.
How can I check if a worksheet exists in a different workbook from a UDF?? I
already know the name of the workbook where the worksheet is supposed to be.
Thanks in advance,
Fredrik