If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
VB UserForms
I am just learning how to create userforms using VB code in PowerPoint. In
all the resources I have found on the web I have not been able to find one that shows how to get what I create on a userform in the VB editor to show up in a presentation. The closest example I have is this but it still does not show during show mode in powerpoint. It does work if I hit run sub/userform in the VB editor though. Any suggestions?? Also any insightful links for VB beginners specific to using VB in Powerpoint is greatly appreciated. Thanks. Private Sub CommandButton1_Click() Image2.Picture = Image1.Picture End Sub Sub ShowForm() UserForm2.Show End Sub |
#2
|
|||
|
|||
VB UserForms
In article , Glhec-Bls
wrote: I am just learning how to create userforms using VB code in PowerPoint. In all the resources I have found on the web I have not been able to find one that shows how to get what I create on a userform in the VB editor to show up in a presentation. The closest example I have is this but it still does not show during show mode in powerpoint. It does work if I hit run sub/userform in the VB editor though. Any suggestions?? Also any insightful links for VB beginners specific to using VB in Powerpoint is greatly appreciated. Thanks. Private Sub CommandButton1_Click() Image2.Picture = Image1.Picture End Sub Sub ShowForm() UserForm2.Show End Sub Assuming you have a form named UserForm2, your Sub ShowForm should do it, but something has to force IT to run. Private Sub CommandButton1_Click() UserForm2.Show End Sub ----------------------------------------- Steve Rindsberg, PPT MVP PPT FAQ: www.pptfaq.com PPTools: www.pptools.com ================================================ |
#3
|
|||
|
|||
VB UserForms
Hmmm, I see no load statement...
Austin Myers Microsoft PowerPoint MVP Team Creator of PFCPro, PFCMedia and PFCExpress http://www.playsforcertain.com "Steve Rindsberg" wrote in message ... In article , Glhec-Bls wrote: I am just learning how to create userforms using VB code in PowerPoint. In all the resources I have found on the web I have not been able to find one that shows how to get what I create on a userform in the VB editor to show up in a presentation. The closest example I have is this but it still does not show during show mode in powerpoint. It does work if I hit run sub/userform in the VB editor though. Any suggestions?? Also any insightful links for VB beginners specific to using VB in Powerpoint is greatly appreciated. Thanks. Private Sub CommandButton1_Click() Image2.Picture = Image1.Picture End Sub Sub ShowForm() UserForm2.Show End Sub Assuming you have a form named UserForm2, your Sub ShowForm should do it, but something has to force IT to run. Private Sub CommandButton1_Click() UserForm2.Show End Sub ----------------------------------------- Steve Rindsberg, PPT MVP PPT FAQ: www.pptfaq.com PPTools: www.pptools.com ================================================ |
#4
|
|||
|
|||
VB UserForms
In article , Austin Myers wrote:
Hmmm, I see no load statement... Not necessary. Accessing anything in the form implicitly loads it. But the code to Show it has to run. Austin Myers Microsoft PowerPoint MVP Team Creator of PFCPro, PFCMedia and PFCExpress http://www.playsforcertain.com "Steve Rindsberg" wrote in message ... In article , Glhec-Bls wrote: I am just learning how to create userforms using VB code in PowerPoint. In all the resources I have found on the web I have not been able to find one that shows how to get what I create on a userform in the VB editor to show up in a presentation. The closest example I have is this but it still does not show during show mode in powerpoint. It does work if I hit run sub/userform in the VB editor though. Any suggestions?? Also any insightful links for VB beginners specific to using VB in Powerpoint is greatly appreciated. Thanks. Private Sub CommandButton1_Click() Image2.Picture = Image1.Picture End Sub Sub ShowForm() UserForm2.Show End Sub Assuming you have a form named UserForm2, your Sub ShowForm should do it, but something has to force IT to run. Private Sub CommandButton1_Click() UserForm2.Show End Sub ----------------------------------------- Steve Rindsberg, PPT MVP PPT FAQ: www.pptfaq.com PPTools: www.pptools.com ================================================ ----------------------------------------- Steve Rindsberg, PPT MVP PPT FAQ: www.pptfaq.com PPTools: www.pptools.com ================================================ |
#5
|
|||
|
|||
VB UserForms
Like I said, I am new to VB, as in I have been using the help function for
two days to figure out what I know. So by load statement you mean......? I understand that what Steve wrote would create a command button that when clicked would show the form, but how would I write it so the form would show right away when you open PPT in show mode, to make it always visible. Like a command that makes userform2 open when PPT show mode is initialized....er something. Thanks for the help. "Steve Rindsberg" wrote: In article , Austin Myers wrote: Hmmm, I see no load statement... Not necessary. Accessing anything in the form implicitly loads it. But the code to Show it has to run. Austin Myers Microsoft PowerPoint MVP Team Creator of PFCPro, PFCMedia and PFCExpress http://www.playsforcertain.com "Steve Rindsberg" wrote in message ... In article , Glhec-Bls wrote: I am just learning how to create userforms using VB code in PowerPoint. In all the resources I have found on the web I have not been able to find one that shows how to get what I create on a userform in the VB editor to show up in a presentation. The closest example I have is this but it still does not show during show mode in powerpoint. It does work if I hit run sub/userform in the VB editor though. Any suggestions?? Also any insightful links for VB beginners specific to using VB in Powerpoint is greatly appreciated. Thanks. Private Sub CommandButton1_Click() Image2.Picture = Image1.Picture End Sub Sub ShowForm() UserForm2.Show End Sub Assuming you have a form named UserForm2, your Sub ShowForm should do it, but something has to force IT to run. Private Sub CommandButton1_Click() UserForm2.Show End Sub ----------------------------------------- Steve Rindsberg, PPT MVP PPT FAQ: www.pptfaq.com PPTools: www.pptools.com ================================================ ----------------------------------------- Steve Rindsberg, PPT MVP PPT FAQ: www.pptfaq.com PPTools: www.pptools.com ================================================ |
#6
|
|||
|
|||
VB UserForms
In article , Glhec-Bls wrote:
Like I said, I am new to VB, as in I have been using the help function for two days to figure out what I know. So by load statement you mean......? If you want, you can load forms into memory without showing them using the Load statement. For big, complex forms on old slow computers, this can save time; when you Show the form, it's already in memory. But Show by itself both loads and shows the form. I understand that what Steve wrote would create a command button that when clicked would show the form, but how would I write it so the form would show right away when you open PPT in show mode, to make it always visible. Like a command that makes userform2 open when PPT show mode is initialized....er something. You can either create an event handler and add code so that it only does something when your particular show is loaded or, much much simpler, you could put an action button or other link on the first slide. User clicks that, it runs code to display your form, move to the next slide and whatever else you need done at slide show initialization time. Thanks for the help. "Steve Rindsberg" wrote: In article , Austin Myers wrote: Hmmm, I see no load statement... Not necessary. Accessing anything in the form implicitly loads it. But the code to Show it has to run. Austin Myers Microsoft PowerPoint MVP Team Creator of PFCPro, PFCMedia and PFCExpress http://www.playsforcertain.com "Steve Rindsberg" wrote in message ... In article , Glhec-Bls wrote: I am just learning how to create userforms using VB code in PowerPoint. In all the resources I have found on the web I have not been able to find one that shows how to get what I create on a userform in the VB editor to show up in a presentation. The closest example I have is this but it still does not show during show mode in powerpoint. It does work if I hit run sub/userform in the VB editor though. Any suggestions?? Also any insightful links for VB beginners specific to using VB in Powerpoint is greatly appreciated. Thanks. Private Sub CommandButton1_Click() Image2.Picture = Image1.Picture End Sub Sub ShowForm() UserForm2.Show End Sub Assuming you have a form named UserForm2, your Sub ShowForm should do it, but something has to force IT to run. Private Sub CommandButton1_Click() UserForm2.Show End Sub ----------------------------------------- Steve Rindsberg, PPT MVP PPT FAQ: www.pptfaq.com PPTools: www.pptools.com ================================================ ----------------------------------------- Steve Rindsberg, PPT MVP PPT FAQ: www.pptfaq.com PPTools: www.pptools.com ================================================ ----------------------------------------- Steve Rindsberg, PPT MVP PPT FAQ: www.pptfaq.com PPTools: www.pptools.com ================================================ |
Thread Tools | |
Display Modes | |
|
|