G
Guest
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
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