This is what I have:
Target Project is Variables.Initial_Variables.Create_Report_Hannani, with a
reference to HannaniPersonal.dot, where I have:
Sub Create_Report_Hannani(txtReportDateMonth, txtReportDateDay,
txtReportDateYear, txtDictationDateMonth, txtDictationDateDay,
txtDictationDateYear, txtBillingPeriod)
With HannaniPersonalTemplate.frmCreate_Hannani_Personal
.txtReportDateMonth.Text = "02"
.txtReportDateDay.Text = "17"
.txtReportDateYear.Text = "2005"
.txtDictationDateMonth.Text = "02"
.txtDictationDateDay.Text = "17"
.txtDictationDateYear.Text = "2005"
.txtBillingPeriod.Text = "021605-022805"
.Show
End With
End Sub
Source Project is HannaniPersonalTemplate. frmCreate_Hannani_Personal, where
I have the following:
Private Sub UserForm_Initialize()
Variables.Initial_Variables.Create_Report_Hannani _
txtReportDateMonth, txtReportDateDay, txtReportDateYear, _
txtDictationDateMonth, txtDictationDateDay, txtDictationDateYear, _
txtBillingPeriod
End Sub
The Target Project doesn't even seem to be recognized, as when I try to
"run" this macro, it brings up a blank macros dialogue box with no macros
listed in it. If I try to "run" the source project, I get an "Object" error.
I am totally confused. If I place the "With--End With" code in the the same
Project as the userform itself, it runs, but not when I try to place the code
outside of the project.
> Hi,
>
[quoted text clipped - 24 lines]
> Word XP, Win 98
> http://word.mvps.org/