excel - Refer to sheet by a portion of the sheet name -
I have a sheet in Excel that I am trying to call in VBA. The way I call it:
Mainmetrics. Sheet (Sheet10). Range ("A1: A1"). Select the name "Data Dump August" but I do not want to call it like this because this name can change, but the letter number will never be I What's wrong?
You can call it: sheet 10.ange ("A1: A 1 "). Choose a sheet named "name" (which is on the tab of sheet) and a "codename" that appears in the VBAProject tree in your VBA / Macro editor. This style of reference uses "codename"
to see if that & gt; & Gt; Go to Project Explorer, open your workbook in the tree and see the sheet name. This will look like Sheet1 (Sheet1) or Sheet 10 ("My Tab Name")
Comments
Post a Comment