H
Hezviz
Hi. I am brand new to this so please bear with me. I have learned alot
from this group and have been able to get a lot accomplished. However, I
am stuck.
Here is the code I have so far:
Sub SetFillSpecific()
Dim strName As String
'display the InsertPicture dialog and
'get the name of the selected picture.
'use this value for the UserPicture value.
Options.DefaultFilePath(wdPicturesPath) = "C:\Documents and
Settings\Heather.HEATHER-O49C7II\My Documents\My Pictures\MinPort\"
With Dialogs(wdDialogInsertPicture)
Display
strName = .Name
End With
Selection.ShapeRange.Fill.UserPicture strName
End Sub
This works great when on my computer, but I need it to be able to work on
others computers. I need to know how to make the path "C:\Documents and
Settings\Heather.HEATHER-O49C7II\My Documents\My Pictures\MinPort\" be a
dynamic path to wherever the My pictures folders is on any computer and
then also stipulate a specific folder within My Pictures such as Min
Port.
Can any one help?
Thank you so much.
from this group and have been able to get a lot accomplished. However, I
am stuck.
Here is the code I have so far:
Sub SetFillSpecific()
Dim strName As String
'display the InsertPicture dialog and
'get the name of the selected picture.
'use this value for the UserPicture value.
Options.DefaultFilePath(wdPicturesPath) = "C:\Documents and
Settings\Heather.HEATHER-O49C7II\My Documents\My Pictures\MinPort\"
With Dialogs(wdDialogInsertPicture)
Display
strName = .Name
End With
Selection.ShapeRange.Fill.UserPicture strName
End Sub
This works great when on my computer, but I need it to be able to work on
others computers. I need to know how to make the path "C:\Documents and
Settings\Heather.HEATHER-O49C7II\My Documents\My Pictures\MinPort\" be a
dynamic path to wherever the My pictures folders is on any computer and
then also stipulate a specific folder within My Pictures such as Min
Port.
Can any one help?
Thank you so much.