Hi dude...
I am not sure if my answer will be useful because I am not good in automation ... however this is what I do and it works perfectly fine with Word, or Excel.
In Excel start recording a Macro, and perform the operation you are willing to do in your program. After that go to Excel's vb editor, and copy the code.
Next just past the code into your program, and place excel's object name in front of every command. You might need the value of some constants, for these you will have to get them from Excel... I think you can use F2 and search for the values in the code editor of Excel.
Hope this helps.
Best regards.
!--removed tag-->
Enter your message below
Sign in or Join us (it's free).