I really need some help with this one. I have tried coding in Excel and moving the code over to Publisher without any effective results.
I have a document that prints four (4) labels for a food product that my wife makes. Each label contains several textboxes, each containing different information. The last text box contains, "Best if eaten by: <current date + 80 days>" If this were in Excel, it would be easy to make the change using VBA, but in Publisher I must select the textbox, but I cannot find anything that shows me the textbox name (e.g., Textbox 440 or other number). So I've tried selecting the textboxes one at a time to change the name, but the code doesn't work.
I've tried:
Can anyone help me with code that will rename the four textboxes (not all of them)? Or better yet, old versions of Publisher gave you the name of the shape you are working in in one corner of the program, but this feature has been deleted in this and recent versions.
Any help would be appreciated!
Thank you.
Charles
I have a document that prints four (4) labels for a food product that my wife makes. Each label contains several textboxes, each containing different information. The last text box contains, "Best if eaten by: <current date + 80 days>" If this were in Excel, it would be easy to make the change using VBA, but in Publisher I must select the textbox, but I cannot find anything that shows me the textbox name (e.g., Textbox 440 or other number). So I've tried selecting the textboxes one at a time to change the name, but the code doesn't work.
I've tried:
VBA Code:
Sub Date_Change()
Selection.ShapeRange.TextFrame.Parent
Shape.Name = "Textbox 1"
End Sub
Can anyone help me with code that will rename the four textboxes (not all of them)? Or better yet, old versions of Publisher gave you the name of the shape you are working in in one corner of the program, but this feature has been deleted in this and recent versions.
Any help would be appreciated!
Thank you.
Charles