Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails
'Macro in standard module: Public Sub CreateLetter() Dim doc As Word.Document Set doc = Application.Documents.Add(strWorkgroup & "Letter.dot") ' "Do stuff" with the resulting document: Call MsgBox(doc.Name) '--> RTE: Object variable or with block variable not Set ' and stepping through the code, I can see that ' the doc variable is indeed Nothing End Sub 'Event in Letter.dot: Private Sub Document_New() Dim f As frmLetter Set f = New frmLetter With f Set .CurrentDocument = ActiveDocument .Show 'After cmdOK_Click, frmLetter processes its CurrentDocument correctly End With Set f = Nothing End Sub
|Numbering Only Even Pages - Consecutively - in Word 2013||3||33|
|Words Divided at end of line - how to correct whose document (Word 2013)||9||60|
|Issues when typing e-mails or Word documents.||10||37|
|In MS Word, rename styles in a batch||9||23|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
11 Experts available now in Live!