Do Until Loop logic help

VBABEGINER

Well-known Member
Joined
Jun 15, 2011
Messages
1,232
Code:
Do Until lx = 12
    
Loop
12 is Col L.

how do i mention lx is the column to increment..??
 
Hi Joe,
Hold on...Let me try myself..If im not able to get successfully, I will put a request to you, then please provide.
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi Joe, Thanks for replying on all queries.

I hv done.

I have query now, after adding all the data, I want the merge part to be un-merged and paste in their respective areas..

can we do this..
 
Upvote 0
Hi Joe Sir,

I just got it from another post..

An excellent work, I always see on MrExcel.
Code:
 Sub Unmerge_Cells()Application.ScreenUpdating = False
Lr = Cells(Rows.Count, 1).End(xlUp).Row
Cells(Lr, 1).Select
Lr = Lr + Selection.Cells.Count - 1
Range("A2:A" & Lr).Unmerge
For r = 3 To Lr
If Cells(r, 1) = "" Then Cells(r, 1) = Cells(r - 1, 1)
Next r
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,467
Messages
6,124,984
Members
449,201
Latest member
Lunzwe73

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