-
May 10th, 2022, 01:00 PM
#1
Contact from VS C++ to Excel VBA
I've got an app written in Visual Studio C++ that deals with excel lines of data and presents it in a Form.
I now need to print the data. A while back I wrote this app in VBA and printing was a simple task of calling UserForm1.Print
How can I get my C++ app to call up this UserForm1 and call that UserForm1.Print command?
Once I get the connection between these two entities I can send the data I want printed and let VBA do the print work.
How does my C++ talk to my Excel VBA?
Thanks for anything
Klatau Broada Nektau
-
May 11th, 2022, 04:26 AM
#2
Re: Contact from VS C++ to Excel VBA
Are you using an excel automaton in your VC++ code?
Victor Nijegorodov
-
May 11th, 2022, 04:53 AM
#3
Re: Contact from VS C++ to Excel VBA
I don't know what excel automation is.
I learned C++ in the 1970s, really.
I use a third party software "libxl" to read cells write cells and open/save workbooks/sheets.
Klatau Broada Nektau
-
May 13th, 2022, 05:15 AM
#4
Re: Contact from VS C++ to Excel VBA
 Originally Posted by Albatross
I don't know what excel automation is.
How to automate Excel from C++ without using MFC or #import
How to automate Excel from MFC and Visual C++ 2005 or Visual C++ .NET to fill or obtain data in a range using arrays
 Originally Posted by Albatross
I use a third party software "libxl" to read cells write cells and open/save workbooks/sheets.
Doesn't this "libxl" have a Print function?
Victor Nijegorodov
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|