VBA Code: Make User Input Appear in a Document

rookst

New Member
Joined
Jun 18, 2013
Messages
28
Hello,

I am very new to VBA, and am trying to make a PowerPoint show that is a quiz. I have all of the programming pretty much figured out, except I want to take the viewer's name (which they enter via an Input box on the first slide) and place it on a printable certificate that can either be on another slide, or on a separate word document, or on a user form.

My question is: how do I get their name to appear on the appropriate spot on the certificate?


Any help would be appreciated
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Not a powerpoint guru, but to replace a word on a word doc I use

Set myRange = ActiveDocument.Range(start:=0, End:=0)
With myRange.Find
.ClearFormatting
.Text = "name"
With .Replacement
.ClearFormatting
.Text = Data1 'this would be your data entry box
End With

.Execute Replace:=wdReplaceAll, _
Format:=True, MatchCase:=True, _
MatchWholeWord:=True
End With
 
Upvote 0
Thanks,

I must be doing something wrong because I could not get this code to do anything?
 
Upvote 0
Got it figured out:

Used the variable "yourname" from the input box to appear on a user form in a Label:

UserForm1.Label1.Caption = yourname
UserForm1.Show
 
Upvote 0

Forum statistics

Threads
1,216,291
Messages
6,129,911
Members
449,540
Latest member
real_will_smith

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top