Named Table Being Referenced by Another Name

jgottlieb

New Member
Joined
Jun 27, 2022
Messages
6
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
  6. 2010
Platform
  1. Windows
I have a tool that drops data into ALM as a named table. These names are in the format of "bvtbl_<GUID>". For example, I have one called, "bvtbl_b67bef2f_d120_4c9b_a6ed_bf0bc2c9e6b2".

When I was writing VBA code to get the row count, it could not find the table. I checked the Table Design ribbon, the name was correct. I checked the name manager, the name was correct.

I ran code to get all the named tables and I found the following:

bvtbl_b67bef2f_d120_4c9b_a6ed_bf0bc2c9e6b2 - My named table (Set by the tool that does the data extraction to Excel)
bvtbl_b67bef2f-d120-4c9b-a6ed-bf0bc2c9e6b2 - reported by the script

Note the changes of underscores to dashes (except the first one).

Is there some explanation for this or how I could have predicted this? This was not what I expected Excel to do.

I'm on Excel 365 v2411 Build 16.0.18227.20082 (64-bit) if that helps.

---
As a workaround, I can grab the name of the table on the sheet as I only have one named table per sheet.

Thanks.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Additional Information:
It seems in the VBA, I need to use the table name with the dashes to get the row count, but the name with the underscores for interfacing (getting data, etc.).
 
Upvote 0

Forum statistics

Threads
1,226,017
Messages
6,188,439
Members
453,474
Latest member
th9r

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top