简体   繁体   English

Excel VBA选择具有范围的目标表

[英]excel vba select target sheet with range

This script only select the current sheets 该脚本仅选择当前工作表

Sheets(Range(c.Address).Offset(0, 2).Text).Visible = True

i tried 我试过了

Sheets("name).Range(c.Address).Offset(0, 2).Text.Visible = True

is not work, how to select the target sheet? 是行不通的,如何选择目标表?

thanks 谢谢

Sheets("name_of_sheet").Range(c.Address).Offset(0, 2).Text.Visible = True

Works for me. 为我工作。 Are you missing the 2nd " in Sheets("name) or was it a typo in this question? 您是否在Sheets("name)缺少第二个"或在此问题中有错字?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM