astr0zombi3s
New Member
- Joined
- Jan 31, 2013
- Messages
- 4
Hello Excel Wizards,
I'm working on a project for my company that requires me to control an external program from within excel.
I'm able to use the call shell command to open the program but the problem I'm running into is that there are 2 fields I need to populate within the external program from data within my worksheet. Once those two fields are populated I need to run the function of the program and return data from a 3rd field on the program.
Through reading on forums it looks like I might be able to accomplish some of this using the sendkeys functionality.
In order to do that though it appears I need to define the object and tell excel where to actually put the data in. This is where I'm a smig out of my depth of experience as I've never really written anything through VBA.
Is this the best way to go about this? Define object then use sendkey?
Any advice or guidance is much appreciated, I'm not exactly sure what information I can provide to you to make this more helpful in order to illicit a response. Please let me know and I'll provide whatever I can.
Thanks,
AstroZombi3s
I'm working on a project for my company that requires me to control an external program from within excel.
I'm able to use the call shell command to open the program but the problem I'm running into is that there are 2 fields I need to populate within the external program from data within my worksheet. Once those two fields are populated I need to run the function of the program and return data from a 3rd field on the program.
Through reading on forums it looks like I might be able to accomplish some of this using the sendkeys functionality.
In order to do that though it appears I need to define the object and tell excel where to actually put the data in. This is where I'm a smig out of my depth of experience as I've never really written anything through VBA.
Is this the best way to go about this? Define object then use sendkey?
Any advice or guidance is much appreciated, I'm not exactly sure what information I can provide to you to make this more helpful in order to illicit a response. Please let me know and I'll provide whatever I can.
Thanks,
AstroZombi3s