简体   繁体   中英

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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