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

html - height not adding height to a empty div -

python - Robot Framework location and name of keyword -

Desktop Launcher for Python Script Starts Program in Wrong Path (Linux) -