Excel to Copy and Paste to a non MS Program

Thomo4321

New Member
Joined
Apr 18, 2019
Messages
44
Office Version
  1. 2016
Platform
  1. Windows
Morning,

I am trying to figure out how to get Excel to integrate with another program that is not a MS program.

All i am wanting to do is take a selection of data out of Excel, cell L:L and paste it to the fields in this program into the Normal Bin Location.

How would i do that with VBA?

clip_image001.png


clip_image002.png
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
So i have figured out how to use sendkeys.

The below is the macro i am currently running, but i would like this macro to continue on until the end of the table (roughly 5000 Rows)

Thanks

Sub Test()
'
' Test Macro
'
'
ActiveCell.Range("L15").Select
Selection.Copy
Application.Wait (Now() + TimeValue("00:00:01"))
Application.SendKeys "%{TAB}"
Application.Wait (Now() + TimeValue("00:00:01"))
Application.SendKeys "~"
Application.Wait (Now() + TimeValue("00:00:0001"))
Application.SendKeys "^v"
Application.Wait (Now() + TimeValue("00:00:0001"))
Application.SendKeys "%{TAB}"
Application.Wait (Now() + TimeValue("00:00:0001"))
SendKeys "{Down}"
Application.Wait (Now() + TimeValue("00:00:0001"))
Selection.Copy
Application.Wait (Now() + TimeValue("00:00:0001"))
Application.SendKeys "%{TAB}"
Application.Wait (Now() + TimeValue("00:00:0001"))
Application.SendKeys "~~~~~~~~"
Application.Wait (Now() + TimeValue("00:00:0001"))
Application.SendKeys "^v"
Application.Wait (Now() + TimeValue("00:00:0001"))
Application.SendKeys "%{TAB}"
Application.Wait (Now() + TimeValue("00:00:0001"))
SendKeys "{Down}"


End Sub
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top