Excel VBA Command - remove blanks after being copy/paste or copy/paste content from Textbox

sammuelsama

New Member
Joined
Sep 11, 2017
Messages
10
Hi Guys,


I create a template with some text on it that I can copy/paste to other apps with a copy button, really basic, selecting, copy to copyboard and pasting it where you want by doing a Ctrl+V but it's creating a lot of space or blanks between the text.

I still want to be able to add some modification to the selected text then I cannot put a limitation on characters.

I was thinking also on being able to copy content from a textbox but I cannot make it work...

Any ideas?

Thank you,
Sammuelsama
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
This is my code;

Sub COPY4_Click()
'
' COPY4_Click Macro
'
Range("N44:S54").Copy
Application.Wait (Now + TimeValue("0:00:15"))
Application.CutCopyMode = False
'
End Sub

This code is simply copying a text contained in a cell range and I could verify there's no additional space or blanks in between.

Any idea?

TY,
Sammuelsama
 
Upvote 0

Forum statistics

Threads
1,216,153
Messages
6,129,172
Members
449,490
Latest member
TheSliink

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