Do Until Loop logic help

VBABEGINER

Well-known Member
Joined
Jun 15, 2011
Messages
1,284
Office Version
  1. 365
Platform
  1. Windows
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

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
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,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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