I have a vba function now called from a subform on a tab control. Previously
when the call was made directly from a form this worked for the call:
WordDoc = "MyMergeB.docx"
Call GenWordDocs(Me, WordDoc)
This is at the beginning of the function:
Public Function GenWordDocs(InpForm As Form, strtemplate As String)
Dim frm As Form
Set frm = InpForm
What subform info should I use in the call instead of the 'Me'? I've spent a few hours trying to figure it out. I have several of these calls from the subform depending upon what docx the user wants to generate. Pls Help!