Using MS 9.0.046 on XP SP2 with Excel 2003.
I am using DDE Request to copy cell values from Excel to the clipboard and then pasting into destination fields in another application.
The problem I have is one specific destination field which simply will not accept pasted clipboard contents. I have had no problems with using DDE Request on other cells and pasting the results into the appropriate fields. I get the same issue with this field when performing the function manually. I can manually select cell D1 in Excel, CTRL+C, toggle to the destination field and then try to CTRL+V and get no result. However, If I access the "Insert function" field at the top of Excel after selecting the appropriate cell, select the value by swiping the mouse from right to left, then CTRL+C, I then have no problem pasting this into the destination.
Is there a way to access this area of Excel and highlight the entire value programmatically with MS, please?
I have searched this forum and tried using the "trim" functions as I thought there may be an issue with invisible characters and field maximums causing the problem but I still can't get a result.
I have also tried changing the format of the cells but with no joy.
I have tried substituting CTRL+V with GetClipBoard>%result% but this also doesn't work on this field.
Any other possibilities or suggestions would be gratefully received.
The code I am trying to use for this field is:
Code: Select all
SetFocus>Microsoft Excel - Extensions.xls
DDERequest>Excel,c:\Extensions.xls,R1C4,result,60
PutClipBoard>%result%
Wait>1
SetFocus>Copy Actions
Press TAB
Wait>1
Press CTRL
Send>v
Release CTRL
TIA.