Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-12-2022, 08:44 AM
Makingwork Makingwork is offline Help creating a word macro Windows 10 Help creating a word macro Office 2021
Novice
Help creating a word macro
 
Join Date: Jul 2022
Posts: 4
Makingwork is on a distinguished road
Default

Thank you so much Macropod!! <3

SOLVED!!

Last edited by Makingwork; 07-12-2022 at 10:45 AM.
Reply With Quote
  #2  
Old 07-13-2022, 07:07 AM
Makingwork Makingwork is offline Help creating a word macro Windows 10 Help creating a word macro Office 2021
Novice
Help creating a word macro
 
Join Date: Jul 2022
Posts: 4
Makingwork is on a distinguished road
Default

I have one more question. Let's say I have 2 more boxes that I need the Date to copy to.

Is it possible to have the Date copied to multiple boxes?
If I name them all "BoxesDate" only 1 updates.

Sub UpdateBoxes(j As Long, StrDt As String)
With ActiveDocument.SelectContentControlsByTitle("Boxes Date")(1)
.LockContents = False
If j = 0 Or StrDt = "" Then
.Range.Text = ""
Else
.Range.Text = ActiveDocument.SelectContentControlsByTitle("Date" )(1).Range.Text)
End If
.LockContents = True
End With
End Sub
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help creating a word macro need help creating a Word macro selecting all and changing font, size, and color thanks marna Word VBA 4 12-18-2018 07:20 PM
Help creating a word macro Creating a macro from a non-saved Word doc that duplicates the current open document and saves it mike0215 Word VBA 3 11-17-2017 01:40 PM
Macro for creating word docs from existing template ferocious12 Word VBA 5 02-04-2017 09:57 PM
help creating macro in word cc.caroline15 Word VBA 10 02-23-2015 04:53 PM
Help creating a word macro help creating macro tingker Word VBA 4 01-08-2015 08:58 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:44 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft