Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Copy unformatted value of cell via macro

I have created an Excel Sheet with a text generator, based upon certain circumstances.

The text generated is based on parameters, and is gathered into paragraphs of text in a single cell, using the CONCATENATE function.

If I copy the finished contents of the cell into a HTML based editor, such as an e-mail - It copies the formatting and a table (TD).

Is there a way, to copy the text (values only) into clipboard?

I have found solutions to paste it unformatted into a cell in Excel, using the following Visual Basic Code:

"
Sub Copy()

Sheet1.Range("GeneratedText").Copy
Sheet2.Cells(1, 1).PasteSpecial xlPasteValues
Sheet2.Cells(1, 1).Copy
"

End Sub
This copies and pastes the text unformatted to the new Cell within Excel - But I wish to paste it elsewhere, and therefor having it stores without formatting in the Clipboard.

I have found one way to do it, using DataObject to a variable, which has a function to put data in the clipboard. In order for that to function you need to add a Reference (Microsoft Forms 2.0 Object Library) which I cannot find in the Mac-version of Excel. Any ideas?

Any ideas?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail from excel - Copy/paste unformatted values and error Brice Excel Programming 5 February 12th 09 12:22 AM
Send mail from excel - Copy/paste unformatted values and error mes Brice Excel Programming 6 February 6th 09 03:40 AM
Macro to Paste Unformatted Text Into Excel Jim Patterson Excel Programming 4 January 7th 08 04:48 PM
Copy-pasting (unformatted) to a word document raphiel2063 Excel Programming 2 October 11th 07 08:53 PM
countif on unformatted dates [email protected] Excel Worksheet Functions 3 June 26th 06 03:44 AM


All times are GMT +1. The time now is 02:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"