LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Macro to Paste Data in Non-Office Program

I am fairly new to VBS, but dabble as much as I am able by addapting other
people's solutions. I need to learn how to do the following:

I want a macro to:
Select an address in Excel (let's say, "Sheet1 A1"),
Open another Microsoft program (i.e. "C:\Program.exe");
The program opens with the curser in the correct box automatically;
I want to then paste the data from Excel into the already selected box.

I am working with something like this:

Sub Macro1 ()
ThisWorkbook.Worksheets("sheet1").Range("a1").Copy
Shell "c:\program.exe", vbNormalFocus
Selection.PasteSpecial
end sub

The problem is that I don't know how to make the paste work in the new
program.

Vista,
Excel 07,
The non-office program is Microsoft Streets.

Glenn
 
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
microsoft office excel cannot paste the data Ian Excel Worksheet Functions 4 April 4th 23 10:50 AM
eula pops up every time i open an office program. office 2003 ins. ijscholl Excel Discussion (Misc queries) 0 July 28th 09 11:54 PM
How can I get Office to activate a command in a non Office program Terry T. Excel Discussion (Misc queries) 1 December 16th 06 06:19 AM
How do I set the default e-mail program for MS Office XP? Andy Setting up and Configuration of Excel 1 March 19th 06 09:07 PM
Microsoft Office Excel cannot paste the data [email protected] Excel Discussion (Misc queries) 0 February 3rd 06 05:58 AM


All times are GMT +1. The time now is 02:13 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"