Fully reference a worksheet by codename

后端 未结 5 744
春和景丽
春和景丽 2020-11-28 14:27

When I reference Excel worksheets using the CodeName property, how do I fully qualify them including the workbook reference?

I want to guard against a scenario with

5条回答
  •  渐次进展
    2020-11-28 15:14

    Sheet1.Cells(1, 1) = "Sheet1 in ThisWorkbook" without the ThisWorkBook prefix works fine without any extra methods

提交回复
热议问题