Copying code from a post - extra lines added

Fluff

That's the one, here's how some of the code appeared in a new module in the VBIDE when I copy and pasted it.
Code.png
 
starl

I'm using Chrome Version 87.0.4280.88 (Official Build) (64-bit).
 
That's because in the original post every line of code is separated by a blank line.
 
Fluff

So the person that posted that code actually had every line of their original code separated by a blank line?

Why weren't they enquiring about a syntax error?:eek:
 
The person most likely copied the original text from Word, not from the VBE directly.
Word application causes multiple linebreaks - known problem at Word side.
 
smozgur

You are probably right, I think this threw me a bit because of the syntax errors.:)
 
so.... mystery solved? ?️‍♀️
 

Forum statistics

Threads
1,224,862
Messages
6,181,461
Members
453,043
Latest member
Sronquest

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