Hello Friends,
I spent so much time to work on referring to worksheet.names("mynamedrange") but it doesn't work. I can find my namedrange with workbook.names("mynamedrange") but not in worksheet.names. I need to find a namedrange in a specific worksheet not in the whole workbook as I may have two same namedranges in two different worksheets.
I have tried with:
workbook.worksheets(index).names("mynamedranged")
workbook.worksheets(sheet_name).names("mynamedranged")
workbook.names("sheet_name!namedrange")
I need to set a value for a namedrange in a specific worksheet. If any of you may want to send me a piece of code in my email, you may drop it at hunaromerzai@yahoo.com.
You help is highly appreciated.
Best
Omerzoi
I spent so much time to work on referring to worksheet.names("mynamedrange") but it doesn't work. I can find my namedrange with workbook.names("mynamedrange") but not in worksheet.names. I need to find a namedrange in a specific worksheet not in the whole workbook as I may have two same namedranges in two different worksheets.
I have tried with:
workbook.worksheets(index).names("mynamedranged")
workbook.worksheets(sheet_name).names("mynamedranged")
workbook.names("sheet_name!namedrange")
I need to set a value for a namedrange in a specific worksheet. If any of you may want to send me a piece of code in my email, you may drop it at hunaromerzai@yahoo.com.
You help is highly appreciated.
Best
Omerzoi