Excel Table Header Row

ManUBlueJay

Active Member
Joined
Aug 30, 2012
Messages
304
Office Version
  1. 2016
Platform
  1. Windows
I would like table 2 header rows to be linked to some of table 1' header row.
SO when I Change the header in the linked cell in table 1 it automatically changes in in table 2.

As soon as I link it and hit enter it inserts a 0 instead.
Any clues or work around would be appreciated.
 
@Yongle
You need to use the 'rich' code tags instead of the 'vba' tags if you want to apply your own format to vba code. That may be what is troubling the OP with the post 9 code.
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
OOOPS
- I copied directly from previous post and pasted into vba tags and amended
- I did not intend to format anything, simply forgot that the formatting is pasted too

Let's try again - make the offset whatever you require it to be
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Sheets("XXX").ListObjects(1).HeaderRowRange.Value = Me.ListObjects(1).HeaderRowRange.Resize(, 8).Offset( ,1).Value
End Sub
 
Upvote 0
OOOPS
- I copied directly from previous post and pasted into vba tags and amended
- I did not intend to format anything, simply forgot that the formatting is pasted too
Ahh, I see. All good now though. (y)
 
Upvote 0

Forum statistics

Threads
1,216,489
Messages
6,130,959
Members
449,608
Latest member
jacobmudombe

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