Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 09-27-2017, 07:31 AM
Charles Kenyon Charles Kenyon is offline Using a Paid stamp in Word Windows 10 Using a Paid stamp in Word Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,582
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

I've created an Add-In for this. Here is a link.
This will go in your Word Startup Folder.
00 deleteme 1.png

The macro it contains is as follows:

Code:
  Sub PaidStamp()
'
' PaidStamp Macro
' Charles Kenyon 27 September 2017
' As Is
'
    Dim nShape As Long
'
   Dim sBBName As String
'
   sBBName = "_PaidStamp"
   On Error GoTo Oops
   Application.Templates(ThisDocument.FullName).BuildingBlockEntries(sBBName).Insert Where:=Selection.Range, _
      RichText:=True ' Insert sBBName Building Block

    nShape = ActiveDocument.Shapes.Count 'Should select textbox for date
    ActiveDocument.Shapes(nShape).Select
'        Selection.Font.Size = 20
    Selection.TypeText Format(Now, "d mmmm YYYY - h:mm AM/PM")
    Selection.HomeKey Unit:=wdStory
    Exit Sub ' we're done
    
Oops: ' Didn't work - building block not there!
   MsgBox Prompt:="The Building Block " & sBBName & " cannot be found in " & _
      ThisDocument.Name & ".", Title:="Didn't Work!"
   On Error GoTo 0
End Sub
It needs to be used in the unprotected portion of a document if protected.
This is rough but should do what you want. It uses an AutoText that contains a WordArt PAID and a blank textbox for the date. You can change these so long as you use the same name for the AutoText entry. You can change the date format in the macro.

This uses a dollar sign icon 00 deleteme 2.png on the QAT to launch the macro.

The macro, the AutoText and the QAT button are all stored in the template.

Last edited by Charles Kenyon; 09-27-2017 at 10:00 AM.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Time Stamp Incorrect ashippen Outlook 0 06-27-2016 12:04 PM
Time Stamp for Categories? mlef Outlook 0 05-18-2016 09:46 AM
Using a Paid stamp in Word Date & time stamp problems in Word XP Scotfan Word 3 03-09-2016 09:45 AM
Using a Paid stamp in Word Word signatures w/ date stamp TechieHell Word 2 03-16-2015 07:24 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:00 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