ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Limelight Media - ExcelTip.com Books > F1 Get the most out of Excel Formulas & Functions

Notices

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-14-2006, 11:44 PM
shadoctl shadoctl is offline
Registered User
 
Join Date: 14 Oct 2006
Posts: 1
shadoctl is on a distinguished road
Talking clilpboard parsing

I have some data in a cell that I need to copy to the clipboard and then paste into another application. The text in the cell is in the format of:

PC COMPUTER-HARDWARE-ACCESSORIES-MOUSE

The application that will receive this text has a 256 char field, but is picky enough not to allow ANY spaces before or after the text (it treats the spaces within as part of the text, so the space between PC and Computer is acceptible.

I copy the text to the clipboard as a VBA Value:

Sub Copy_1()
Application.ScreenUpdating = False

Range("D3").Interior.ColorIndex = 3
Range("Z103").Select
Selection.ClearContents
Range("Z103").Value = Range("D3").Value
Range("Z103").Copy
End Sub

However, When I go to paste it into the other Application, clipboard seems to have added a Space and/or Page Eject (Carriage Return)into the data (the cell has no spaces around the text if the cursor positioning is a true indication). Is there a way to load this data into clipboard and paste it to another doc without adding leading or trailing characters or page ejects (hidden or otherwise)? I have found no definition of the Parse option so far, but suspect that that only helps for loading the data into the clipboard.
Reply With Quote
Reply

Bookmarks

New topics in F1 Get the most out of Excel Formulas & Functions


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


All times are GMT -4. The time now is 07:28 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0