VBA coding for Vertical to Horizontal depending on criteria

kitsa

Board Regular
Joined
Mar 4, 2016
Messages
111
Office Version
  1. 365
  2. 2016
Hi All,
I'm trying to create a VBA for automation from Sheet1 to Sheet2, but it's vertical on Sheet1 and would like it to be horizontal in Sheet2 as per example image.
Would like to know how to loop and if adding extra data if it will create new info?
 

Attachments

  • VBA Vertical to Horizontal image.png
    VBA Vertical to Horizontal image.png
    62 KB · Views: 11

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Unpivot your data with Power Query. If you reload your data using XL2BB then I can provide you with M code. We cannot manipulate data in a picture.
 
Upvote 0
I just manually created it and screen shot it. I don't know how to use what you have asked. Can I upload the spreadsheet on here?
 
Upvote 0
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,593
Members
449,038
Latest member
Arbind kumar

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