![]() |
How do I check for a range name within Excel using C#
I am looking for a way to search an Excel Workbook for the existance of a
particular range name that may or may not exist. Does get_Range return a trappable error message? |
How do I check for a range name within Excel using C#
Hi
a VBA solution dim oName as name on error resume next set oname=activeworkbook.names("your_range_name") if oname is nothing then msgbox "Name does not exist" else 'do something end if -- Regards Frank Kabel Frankfurt, Germany "Chuck53" schrieb im Newsbeitrag ... I am looking for a way to search an Excel Workbook for the existance of a particular range name that may or may not exist. Does get_Range return a trappable error message? |
All times are GMT +1. The time now is 08:58 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com