![]() |
#1
|
|||
|
|||
![]()
I've entered this macro code into a module in a new ppt vbproject module:
Public Sub Rebuild_Custom_Message_Box() Dim oForm As Object 'Create a FORM = .Add(3) /3 = MSFORM's type value Set oForm = ActivePresentation.VBProject.VBComponents.Add(vbex t_ct_MSForm) 'Change the Name of the new form oForm.Name = "CustomMsgBox" 'Change the Caption oForm.Caption = "Message" End Sub See attached Word Document with two screen shots of the error. I get a runtime error " #75: could not find the specified object" on the line shown in red text. Userform1 is created and appears in the VBProject pane under the Forms folder Icon. What is the correct macro code to change the name and caption of a newly created UserForm? Thanks for your time, effort and concern in this matter. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
derajlance | Word VBA | 7 | 06-01-2019 08:02 PM |
Change focus from userForm back to word document to see results. | Hank Smith | Word VBA | 1 | 08-11-2014 05:00 AM |
Change parent for control from frame to userForm? | Cosmo | Word VBA | 0 | 05-30-2014 02:19 PM |
![]() |
BigOldArt | Word | 2 | 01-18-2013 01:22 PM |
[Word 2003] Macro's and a UserForm | xanuex | Word VBA | 0 | 10-19-2009 05:42 AM |