Computer Learning Zone CLZ Access Excel Word Windows

Be excellent to each other

-Bill & Ted
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Back to Microsoft Word Forum    Comments List
Filename to include Datepicker Upload Images   Link   Email  
Richard F 
11 years ago
I solved it.
For anyone interested:
Please excuse the way this is presented (ie. Format, it's hard to copy and paste and see result in these small Post Comments window.


Private Sub CommandButton50_Click()

Dim dMonth As Date
Dim strMonth As String
Dim strYear As String
Dim strFullDay As String
Dim oCtrl As ContentControl

For Each oCtrl In ActiveDocument.ContentControls

    If oCtrl.Tag = "MeetingDay" Then

          If oCtrl.ShowingPlaceholderText = True Then

          MsgBox "You didn't select a date"
          oCtrl.Range.Select

    Else

dMonth = CDate((ActiveDocument.SelectContentControlsByTag("MeetingDay").Item(1).Range.Text)


      strMonth = Format(dMonth, "MMMM")

      strYear = Format(dMonth, "yyyy")

      strFullDay = Format(dMonth, "DD-MMMM-YYYY")

MsgBox "These Minutes will be saved to: " & "C:\User\Rick\Meetings\" & strYear & "\" & strMonth & "\Meeting Minutes " & strFullDay & ".doc"

ActiveDocument.SaveAs FileName:="C:\User\Rick\Meetings\" & strYear & "\" & strMonth & "\Meeting Minutes " & strFullDay & ".doc"
         End If
Exit For
    End If
Next oCtrl
End Sub

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Microsoft Word Forum.
 

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/25/2024 9:01:43 AM. PLT: 1s