Copy Range of Cells, Removing CR&LF and Pasting to Notepad

Heinrichxx

New Member
Joined
Oct 6, 2022
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hello
I have a sheet "Data".
Would like to copy a range "G11:H95".
The range should have removed all CR&LF and replace the CR&LF with ";".
This data is needed for a powershell script.
After removing the CR&LF I would like to paste it to notepad in one line.
How can this be accomplished.
Thank you
Heinrichxx
 
Glad it is working for you. @OaklandJim's did a great job given how little information was provided in the initial request.
His code was nice and clear so it was pretty ease to incorporate the additional information you provided in post #3 into his code.
Hi OaklandJim
Hi Alex
You are right and the script is understandable.
Yes he did a great Job.
Sorry that it was not so understandable:
Have you both a great time and keep healthy
Heinrichxx
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Great Job
Thank you all
 

Attachments

  • Great_Job.png
    Great_Job.png
    12.4 KB · Views: 4
Upvote 0

Forum statistics

Threads
1,215,325
Messages
6,124,254
Members
449,149
Latest member
mwdbActuary

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