Excel loop to be worked across 3 sheets of a workbook.

gvikrama

New Member
Joined
Aug 5, 2011
Messages
1
Hi,

I am looking for an IF Then loop to work across 3 sheets in a workbook. I have a macro running on Sheet 1 to split the comma separated values in a particular cell (say B11), so that 1st value will be put in E11, 2nd value in F11 and this goes on till the last value entered in B11.

Now I want an IF Then loop to work so that,

==> it should first select E11 and check if it is empty, if not then should enter into the loop.
==> There is a formatted column set of 3 in Sheet 3. After identifying value in E11 of Sheet 1, macro should copy the 3 columns in Sheet 3 to A1 of Sheet 2
==> then copy the value in E11 of Sheet 1 to A2 of Sheet 2.

Now it should go to the next cell of E11 which is F11 and check whether it is empty and if not get on to the loop.

in the loop the column set from sheet 3 should be pasted to D1 of sheet2 and value in F11 of sheet 1 should be pasted to D2 of sheet 2

This should go on until an empty cell is identified in the 11th row of sheet 1

Can you please help me with the best way to implement this loop.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,224,590
Messages
6,179,752
Members
452,940
Latest member
rootytrip

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