Have table header use a unique number not a generic one.

matthardy19

New Member
Joined
Aug 17, 2021
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Just looking for help.

I have a costing sheet that spits out a table for each building if it has a qty>0. This then is put into a table which is all generated by VBA.

Each table has a Main heading which Material List- Building: "". The buildings go from 1 To 100. Currently it just provides the Generic Material List- Building: 1 , Material List- Building: 2 etc.

What I am wanting it to do is instead of it spitting out the Generic building title for it to use the Unique Building numbers which are stated in the input sheet. Say the two building which we are quoting for are 366 and 25B, the table title would look like Material List- Building: 336 & Material List- Building: 25B.

The Unique Building number are placed in the cells F2:DA2.

I have added an example document which to the current outcome and the desired outcome.

Example-
Full Sheet-
Full VBA Code-

Please feel free to ask any more question if you need more information.
 
Last edited by a moderator:

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,214,787
Messages
6,121,558
Members
449,038
Latest member
Guest1337

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