Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

export from excel to an application with visual basic

Status
Not open for further replies.

bencnu

Technical User
Nov 3, 2003
34
US
I am trying to export information from a cell to and application. I know you can export info to a text file,

channelNumber = Application.DDEInitiate( _
app:="WinWord", _
topic:="C:\Program Files\Microsoft Office\Office10\test.doc")
Set rangeToPoke = Worksheets("Sheet1").Range("A1")
Application.DDEPoke channelNumber, "\StartOfDoc", rangeToPoke
Application.DDETerminate channelNumber

But can i export cell a1 to a program like calculator?
 
Have a look at the Shell command (and SendKeys) in VB Editor Help.
Could be just what you want.

Regards
BrianB
** Let us know if you get something that works !
================================
 
thank you for the advice, but i still can't seem to get it working.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top