Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Application communicating with Excel

Hi all,

Please give me any suggestion regarding how to send to Excel, 5 strings that
I'm getting manualy by selecting/copy from another application.
I tryed my best and searched internet but I couldn't solve it.
Clipboard looks helpful but.. http://www.cpearson.com/excel/Clipboard.aspx

For example:

For i=1 to 5
ActiveSheet.Cells(1,i)=Selection/copy(i)
Next i


Thank you very much for any solution!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Application communicating with Excel

Any solution, if any, would depend entirely on what the other application
is, in particular whether it supports automation and depending on the app
(eg IE, Word) knowing where the text is you want to copy.

Regards,
Peter T

"Dan Tabla" wrote in message
...
Hi all,

Please give me any suggestion regarding how to send to Excel, 5 strings
that
I'm getting manualy by selecting/copy from another application.
I tryed my best and searched internet but I couldn't solve it.
Clipboard looks helpful but.. http://www.cpearson.com/excel/Clipboard.aspx

For example:

For i=1 to 5
ActiveSheet.Cells(1,i)=Selection/copy(i)
Next i


Thank you very much for any solution!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Application communicating with Excel

It is an old application developed in C and I can make selection and copy it
which I can see it on Excel Edit/Office Clipboard.
Problem is that I dont know how to automatically retrieve it from there and
paste it in the
ActiveSheet.

Thanks a lot for you answer!

"Peter T" wrote:

Any solution, if any, would depend entirely on what the other application
is, in particular whether it supports automation and depending on the app
(eg IE, Word) knowing where the text is you want to copy.

Regards,
Peter T

"Dan Tabla" wrote in message
...
Hi all,

Please give me any suggestion regarding how to send to Excel, 5 strings
that
I'm getting manualy by selecting/copy from another application.
I tryed my best and searched internet but I couldn't solve it.
Clipboard looks helpful but.. http://www.cpearson.com/excel/Clipboard.aspx

For example:

For i=1 to 5
ActiveSheet.Cells(1,i)=Selection/copy(i)
Next i


Thank you very much for any solution!



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Application communicating with Excel

If you can control all about putting into the clipboard, to put it into
cells two ways

Simple way -
Range("E7").PasteSpecial

with a lot more control -
First ensure the project has a reference to MS Forms, quick way is to add
(and remove) a userform

Sub test()
Dim s As String
Dim dob As DataObject
Set dob = New DataObject
dob.GetFromClipboard
s = dob.GetText
' now do whatever with s, eg
' Split() to parse into multiple lines or simply
Range("B12").Value = s
End Sub

Regards,
Peter T


"Dan Tabla" wrote in message
...
It is an old application developed in C and I can make selection and copy
it
which I can see it on Excel Edit/Office Clipboard.
Problem is that I dont know how to automatically retrieve it from there
and
paste it in the
ActiveSheet.

Thanks a lot for you answer!

"Peter T" wrote:

Any solution, if any, would depend entirely on what the other application
is, in particular whether it supports automation and depending on the app
(eg IE, Word) knowing where the text is you want to copy.

Regards,
Peter T

"Dan Tabla" wrote in message
...
Hi all,

Please give me any suggestion regarding how to send to Excel, 5 strings
that
I'm getting manualy by selecting/copy from another application.
I tryed my best and searched internet but I couldn't solve it.
Clipboard looks helpful but..
http://www.cpearson.com/excel/Clipboard.aspx

For example:

For i=1 to 5
ActiveSheet.Cells(1,i)=Selection/copy(i)
Next i


Thank you very much for any solution!



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Application communicating with Excel

Thank you so much Peter for your solution. It is what I need it but I still
have to
solve how to update my clipboard after I copy/paste fist string and I dont
know where and how to put your code in Excel.
If I put the code under a Click_Button I have to click it all the time which
is not convenient.

"Peter T" wrote:

If you can control all about putting into the clipboard, to put it into
cells two ways

Simple way -
Range("E7").PasteSpecial

with a lot more control -
First ensure the project has a reference to MS Forms, quick way is to add
(and remove) a userform

Sub test()
Dim s As String
Dim dob As DataObject
Set dob = New DataObject
dob.GetFromClipboard
s = dob.GetText
' now do whatever with s, eg
' Split() to parse into multiple lines or simply
Range("B12").Value = s
End Sub

Regards,
Peter T


"Dan Tabla" wrote in message
...
It is an old application developed in C and I can make selection and copy
it
which I can see it on Excel Edit/Office Clipboard.
Problem is that I dont know how to automatically retrieve it from there
and
paste it in the
ActiveSheet.

Thanks a lot for you answer!

"Peter T" wrote:

Any solution, if any, would depend entirely on what the other application
is, in particular whether it supports automation and depending on the app
(eg IE, Word) knowing where the text is you want to copy.

Regards,
Peter T

"Dan Tabla" wrote in message
...
Hi all,

Please give me any suggestion regarding how to send to Excel, 5 strings
that
I'm getting manualy by selecting/copy from another application.
I tryed my best and searched internet but I couldn't solve it.
Clipboard looks helpful but..
http://www.cpearson.com/excel/Clipboard.aspx

For example:

For i=1 to 5
ActiveSheet.Cells(1,i)=Selection/copy(i)
Next i


Thank you very much for any solution!


.



.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Application communicating with Excel

I don't understand what you are trying to do, where the text is being copied
from, which apps are you running, etc. You said something about using an old
C app to copy the text, how and from where are you running the C app, from
VBA? Or is your C-App automating Excel.

Regards,
Peter T

"Dan Tabla" wrote in message
...
Thank you so much Peter for your solution. It is what I need it but I
still
have to
solve how to update my clipboard after I copy/paste fist string and I dont
know where and how to put your code in Excel.
If I put the code under a Click_Button I have to click it all the time
which
is not convenient.

"Peter T" wrote:

If you can control all about putting into the clipboard, to put it into
cells two ways

Simple way -
Range("E7").PasteSpecial

with a lot more control -
First ensure the project has a reference to MS Forms, quick way is to add
(and remove) a userform

Sub test()
Dim s As String
Dim dob As DataObject
Set dob = New DataObject
dob.GetFromClipboard
s = dob.GetText
' now do whatever with s, eg
' Split() to parse into multiple lines or simply
Range("B12").Value = s
End Sub

Regards,
Peter T


"Dan Tabla" wrote in message
...
It is an old application developed in C and I can make selection and
copy
it
which I can see it on Excel Edit/Office Clipboard.
Problem is that I dont know how to automatically retrieve it from there
and
paste it in the
ActiveSheet.

Thanks a lot for you answer!

"Peter T" wrote:

Any solution, if any, would depend entirely on what the other
application
is, in particular whether it supports automation and depending on the
app
(eg IE, Word) knowing where the text is you want to copy.

Regards,
Peter T

"Dan Tabla" wrote in message
...
Hi all,

Please give me any suggestion regarding how to send to Excel, 5
strings
that
I'm getting manualy by selecting/copy from another application.
I tryed my best and searched internet but I couldn't solve it.
Clipboard looks helpful but..
http://www.cpearson.com/excel/Clipboard.aspx

For example:

For i=1 to 5
ActiveSheet.Cells(1,i)=Selection/copy(i)
Next i


Thank you very much for any solution!


.



.



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
Communicating with Excel from another program Roy Sites Excel Programming 0 June 20th 06 09:23 PM
Communicating with Outlook Matt Jensen Excel Programming 4 January 8th 05 01:26 PM
Communicating down RS232 Phil Excel Programming 3 August 6th 04 08:29 AM
Communicating errors from a custom function in an add-in Thomas Smith Excel Programming 1 May 26th 04 09:00 AM
HELP - Communicating between C++ and VBA Benoit[_2_] Excel Programming 2 July 15th 03 03:03 PM


All times are GMT +1. The time now is 11:57 PM.

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

About Us

"It's about Microsoft Excel"