Copy contents of a cell without formatting or control charcs

aparna

New Member
Joined
Nov 4, 2005
Messages
16
Every time I copy the contents of an excel cell it copies the text box and some formating characters alongwith the contents.

Is there anyway I can copy the contents of a cell as pure text either through a macro or VBA.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Re: Copy contents of a cell without formatting or control ch

aparna said:
Every time I copy the contents of an excel cell it copies the text box and some formating characters alongwith the contents.

Is there anyway I can copy the contents of a cell as pure text either through a macro or VBA.
What text box and formatting characters?
 
Upvote 0
Hi,

Try Edit / Paste Special / Values

alternatively, to coopy A1 to B1 via VBA,

Range("B1).value=Rangre("A1").value
 
Upvote 0
To test this, try copying any data from a cell in excel and paste this on Word.

You will find that alongwith the data you will find that a text box and a CRLF character is automatically pasted on word.

Aparna
 
Upvote 0
aparna said:
To test this, try copying any data from a cell in excel and paste this on Word.

You will find that alongwith the data you will find that a text box and a CRLF character is automatically pasted on word.

Aparna
You didn't mention moving out of Excel and into Word before so it was no wonder nobody knew what you were asking.

I have Word 2002 and when I paste there from Excel, a small icon with 'Paste Options' appears near the pasted data. One of the options is 'Keep Text Only'. I think it should be pretty much what you want. If you have an older version of Office, you may not have this option.
 
Upvote 0
Hi Alan,
Thanks so much for your reply. I realised that Edit Paste Special Value works only within Excel. I am looking at copying the contents in another application eg Word or SAP etc.
Aparna
 
Upvote 0

Forum statistics

Threads
1,203,752
Messages
6,057,153
Members
444,908
Latest member
Jayrey

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