megatronixs
Registered User.
- Local time
- Today, 22:43
- Joined
- Aug 17, 2012
- Messages
- 719
Hi all,
I'm using now a macro that opens or create a folder with the ID number if is is not created it will create it.
I would like to also create a word doc with the ID number in the same folder and open it up.
So far I have this code:
Would be great if some one could help with this.
Greetings.
I'm using now a macro that opens or create a folder with the ID number if is is not created it will create it.
I would like to also create a word doc with the ID number in the same folder and open it up.
So far I have this code:
Code:
Private Sub Command92_Click()
Dim strEventPhotos As String
' Define in one place, use in three.
strEventPhotos = "C:\Docs\" & Me.ID
If Len(Dir(strEventPhotos, vbDirectory)) = 0 Then
MkDir strEventPhotos
End If
Shell "EXPLORER.EXE " & strEventPhotos, vbNormalFocus
End Sub
Would be great if some one could help with this.
Greetings.