Do...loop until help

edlim85

Board Regular
Joined
May 4, 2009
Messages
178
Hi there,

I have been cracking my head on how shld i know the task below. I also just started to learn vba and thats y my head crack.

I need to format a set of data into a specified number of columns. Say for example in Range R25:E16, starting from E5 to LC i have 12 columns. I need to format the Range into 6columns, then insert new row, cut and paste the remain 6columns.

I have upload the example to box net. Pls kindly take a look.
http://www.box.net/shared/dxq9kaormmjaqfiy740h

This is so far what i figure out. i need to use vBa to check each row if the condition columns.count is more than 6. If False then go next row. if true ...< do i use do until loop here? >.

Really need some advise here.


Thank you.

Regards
Edmund
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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