updating headers with standard names on different worksheets

srini0712

New Member
Joined
Aug 21, 2020
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Could any one help with to create a macro for below functionality, please-

within a excel sheet, i have for example 5 worksheets & each sheet containing data with in tables. how can we write code in VBA to standardize the headers in all worksheets such that they all have same headers.

the code should list me the original sheets along with the header names to which i want to update upon selection.

Example:
On sheet 1, i have table 1 as attached.
on sheet 2, i have table 2
on sheet 3, i have table 3

All the 3 tables have different header names.
when i click on a macro, first it should list me the sheets names along with corresponding headers names. Then user should be able to write or select the new header names for each column in the table.
 

Attachments

  • table 1.jpg
    table 1.jpg
    47.6 KB · Views: 7
  • table 2 on sheet 2.jpg
    table 2 on sheet 2.jpg
    23.3 KB · Views: 7
  • table 3 on sheet 3.jpg
    table 3 on sheet 3.jpg
    12.2 KB · Views: 7

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
hi.
Something that may help. If you select all of the sheets, when you edit cell a1 it will update a1 in all of the selected sheets. Also you can apply formatting and column widths across the selected sheets.
Select individual additional sheets with ctrl & click on sheet tab. To select many, select first then shift& select last sheet.
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,873
Members
449,056
Latest member
ruhulaminappu

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