VBA TRANSPOSE DICTIONARY & ARRAY

roykana

Active Member
Joined
Mar 8, 2018
Messages
311
Office Version
  1. 2010
Platform
  1. Windows
Dear All master,

I want to make transpose with vba code dictionary and array because the number of rows or records is 10,000.

The sheet name is "MASTER" and is it possible to directly transpose on the same sheet and create a table directly?
this is original data

VBA TRANSPOSE DICTIONARY & ARRAY.xlsx
ABCDE
1PATHFILENAMEKODEITEMV
2\\server-pc\CATALOG\CATALOG TAS FINAL\111138(1).jpg111138(1).jpg111138TAMAKA R 111138 RC/L-TOP
3\\server-pc\CATALOG\CATALOG TAS FINAL\111138(2).jpg111138(2).jpg111138TAMAKA R 111138 RC/L-TOP
4\\server-pc\CATALOG\CATALOG TAS FINAL\111138(3).jpg111138(3).jpg111138TAMAKA R 111138 RC/L-TOP
5\\server-pc\CATALOG\CATALOG TAS FINAL\111138(4).jpg111138(4).jpg111138TAMAKA R 111138 RC/L-TOP
6\\server-pc\CATALOG\CATALOG TAS FINAL\111138(5).jpg111138(5).jpg111138TAMAKA R 111138 RC/L-TOP
7\\server-pc\CATALOG\CATALOG TAS FINAL\111138(6).jpg111138(6).jpg111138TAMAKA R 111138 RC/L-TOP
8\\server-pc\CATALOG\CATALOG TAS FINAL\Other\.139.jpg.139.jpg.139ALFIN R 139 RKL
9\\server-pc\CATALOG\CATALOG TAS FINAL\Other\+112.jpg+112.jpg+112AKZ RMJ C 112
10\\server-pc\CATALOG\CATALOG TAS FINAL\ENTOS\57024.jpg57024.jpg57024ALFON PKN 57024 D1680 TG
11\\server-pc\CATALOG\CATALOG TAS FINAL\ENTOS\57024-1.jpg57024-1.jpg57024ALFON PKN 57024 D1680 TG
12\\server-pc\CATALOG\CATALOG TAS FINAL\1040F...jpg1040F...jpg1040F..SPLASH R 1040 PRINT FROZEN
MASTER


this is the desired data result
VBA TRANSPOSE DICTIONARY & ARRAY.xlsx
ABCDEFGHIJKLMNO
1PATH1PATH2PATH3PATH4PATH5PATH6FILENAME1FILENAME2FILENAME3FILENAME4FILENAME5FILENAME6KODEITEMV
2\\server-pc\CATALOG\CATALOG TAS FINAL\111138(1).jpg\\server-pc\CATALOG\CATALOG TAS FINAL\111138(2).jpg\\server-pc\CATALOG\CATALOG TAS FINAL\111138(3).jpg\\server-pc\CATALOG\CATALOG TAS FINAL\111138(4).jpg\\server-pc\CATALOG\CATALOG TAS FINAL\111138(5).jpg\\server-pc\CATALOG\CATALOG TAS FINAL\111138(6).jpg111138(1).jpg111138(2).jpg111138(3).jpg111138(4).jpg111138(5).jpg111138(6).jpg111138TAMAKA R 111138 RC/L-TOP
3\\server-pc\CATALOG\CATALOG TAS FINAL\Other\.139.jpg.139.jpg.139ALFIN R 139 RKL
4\\server-pc\CATALOG\CATALOG TAS FINAL\Other\+112.jpg+112.jpg+112AKZ RMJ C 112
5\\server-pc\CATALOG\CATALOG TAS FINAL\ENTOS\57024.jpg\\server-pc\CATALOG\CATALOG TAS FINAL\ENTOS\57024-1.jpg57024.jpg57024-1.jpg57024ALFON PKN 57024 D1680 TG
6\\server-pc\CATALOG\CATALOG TAS FINAL\1040F...jpg1040F...jpg1040F..SPLASH R 1040 PRINT FROZEN
MASTER (2)



thanks
roykana
 
Thanks for letting us know. Just make sure the workbook you are trying to access with the macro is the activeworkbook when you are running it from the VB Editor.
 
Upvote 0

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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