Technologically, there are now 3 alternatives to using Interop (forgetting about VSTO which ultimately uses the object model anyway and isn't available on Mac AFAIK)
#Free ms word templates for mac code
To avoid using a VBA Userform, you could probably use a Word document containing standard legacy Word Form Fields to gather your data and perhaps a Word macrobutton to start code execution. However, it sounds to me as if VBA would do what you need. For example, there are no ActiveX controls on Mac. (You cannot even import Userforms (.frm/.frx) successfully on the Mac version so you cannot export/edit the VBA/re-import the code.)Īlso, not everything available on Windows Word is available on Mac Word or is made available via the object model on Mac. So you would have to create and maintain your code on the Windows platform. I do not even think there is any other way to use Interop on Mac at the moment.īut, although Mac Word VBA will execute VBA Userforms, the Mac Word VBA Editor does not let you create or edit Userform layouts or the underlying code.
Not sure this question is “in scope” for this site (it could be argued that any answer would be "opinion-based", but the short answer is that if you need Interop, on Mac at the moment the only simple way to do that is to use VBA. I'm a hobby-programmer and this is the purpose why I ask - can you guys recommend the platform, methods, type of the app, settings, etc that this project will fit without starting with foul direction in the first place?
#Free ms word templates for mac mac os
Now looking ahead - will I be able to use Interop.word to manipulate MS office files? Would be nice if the program would work on both Mac OS and Win. I heard programming on Mac is better, but the first impression looks otherwise. Could you recommend some options (visual studio or not)? I downloaded Visual Studio (C#) for Mac, which appears to be more complicated than it was on Win - designer in additional Xcode window, buttons need their functions to be assigned "by hand". Now after some years I switched to Macbook and I need to make the same thing on it. I have some exp with Windows.Forms C#, where I've successfully made a program executing these exact commands. docx text fields and saves the file on the disc.
I have a job related aim to create a app, which comes as a program window with text fields, on button click opens a Word file template, inserts text from textboxes to.