Concatenated lines of code

AlphaFrog

MrExcel MVP
Joined
Sep 2, 2009
Messages
16,541
Also, which is related to this, the code in a post for the 1st and 2nd line get concatenated in many many cases.
This is a real pain since we have to edit the post again and hit Enter after the first line of code to separate it from the second.
 
It looks like there's a bunch of HTML garbage in there that's messing it up:

[ CODE ]
'<code style="border: 0px; font-family: 'Segoe UI', Arial, sans-serif; margin: 0px; padding: 0px; vertical-align: top; -webkit-font-smoothing: antialiased;">' Private Sub Worksheet_SelectionChange(ByVal Target As Range) Static NextCell As Range If NextCell Is Nothing Then If Target.Cells.Count = 1 And Not (Application.Intersect(Target, Range("L6,L12,L18,L24,L30")) Is Nothing) Then Set NextCell = Target.Offset(2, -8) End If Else Application.EnableEvents = False NextCell.Select Set NextCell = Nothing End If Application.EnableEvents = TrueEnd Sub</code></pre>
[ / CODE ]
 

Forum statistics

Threads
1,221,547
Messages
6,160,450
Members
451,647
Latest member
Tdeulkar

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