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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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