Change Column Position by Input

Jakhongir

New Member
Joined
Aug 3, 2022
Messages
3
Office Version
  1. 2021
  2. 2019
Platform
  1. Windows
Hello guys!

I need a help with VBA code to chnger order of columns when I click using drop down list

I have data of 12 stores, with 12 columns, each column consisting of stocks for each stores. What I want is, I want to specify the columns (each time it is going to be different) to be in what columns the store has to be, then the VBA code should create another sheet and paste the data from main sheet, exactly I specified which store to be in what columns.

I really appreciate your help on this. Thanks)
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Yes sure!

Actually, what I need is a constructor that can change order of columns in another sheet

Example: I have a data;

Column A
Column A
Column A
Column A
 
Upvote 0
Yes sure!

Actually, what I need is a constructor that can change order of columns in another sheet

Example: I have a data;

Column F: Store 1
Column G: Store 2
Column H: Store 3
....................................
Column Q; Store 12

Then, in another sheet I will have Constructor (I will manually write Store names for each column) for Stores but this time in different columns, for instance:

Column F: Store 2
Column G: Store 6
Column H: Store 3
....................................
Column Q; Store 11

When I run the VBA code, It should copy the data from main source, and paste it under each Store
 
Upvote 0

Forum statistics

Threads
1,215,813
Messages
6,127,026
Members
449,352
Latest member
Tileni

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