excel - Specifying a range within a workbook without specifying the sheet -


if want refer range within active workbook in excel vba, can "with range("myrange")". don't need sheet name.

sometimes want refer range in workbook. "with myworkbook.range("myrange")" doesn't work because have specify sheet range in.

is there way of referring range in workbook without having sheet range in?

if create named range , scope workbook can use following named range in workbook. error if name can't found.

wb.names("myrange").referstorange 

Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -