Creating a wizard to step a user through the document

G

geekomancer

Hello all. I'm an "extreme" newbie to VBA, and I'm having a heckuva
time figuring things out.

I've got a document that I need basically five user forms, one to
choose the form, and one each for the separate document forms. I've
got the first one set, now I'm looking to do the four main forms, and
I need to give the user an option to insert an image if a checkbox is
clicked.

I have to admit that most of the stuff I've seen for this online have
been a bit... dense fro me to understand, so I'm hoping you all can
help!

Is there someplace I can look that has help for the beginner on this
stuff? I was kinda thrown into the VBA deep end at work and have no
idea what I'm doing! :)

Thanks!
~Mike
 
D

Doug Robbins - Word MVP

To get meaningful help, you will need to give a much clearer description of
exactly what it is that you are trying to create and with what specific
items you are having a problem.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
G

geekomancer

Okay, I'll try...

I have a main word doc. On load, it brings up a dialog with several
options. Depending on the options, you can choose one of five other
forms. On these forms, I need to be able to let the user include an
image file to add to the word document. I would like to use a checkbox
to enable whether or not they want an image. If so, a standard Browse
file button appears, where they can choose an image from their hard
drive. I'm not sure how to go about this.

How's that? I'm not sure how much more specific I can be :(
 
D

Doug Robbins - Word MVP

Well, I am still now sure exactly what help you need, but to allow the user
to browse to and select a picture, use

Dim fd As FileDialog
Dim PictureSource As String
Set fd = Application.FileDialog(msoFileDialogFilePicker)
With fd
.AllowMultiSelect = False
.title = "Select Picture"
.InitialFileName = ""
If .Show = -1 Then
PictureSource = .SelectedItems(1)
Else
Exit Sub
End If
End With
Set fd = Nothing

or, for one that actually uses the Insert Picture dialog

Dim PictureSource As String
With Dialogs(wdDialogInsertPicture)
If .Display <> -1 Then
PictureSource = ""
Else
PictureSource = WordBasic.FileNameInfo$(.Name, 1)
End If
End With
MsgBox PictureSource


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

Okay, I'll try...

I have a main word doc. On load, it brings up a dialog with several
options. Depending on the options, you can choose one of five other
forms. On these forms, I need to be able to let the user include an
image file to add to the word document. I would like to use a checkbox
to enable whether or not they want an image. If so, a standard Browse
file button appears, where they can choose an image from their hard
drive. I'm not sure how to go about this.

How's that? I'm not sure how much more specific I can be :(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top