Help Please correct e mail address 
Author Message
 Help Please correct e mail address

I have been trying to make a user interface to open Powerpoint presentations
with the Paths in a text box I have used the following code:

Module

Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal
hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal
lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long)
As Long

Private Sub Cmd1_Click()
Dim X
X = ShellExecute(hwnd, "open", "" & _
 (Txt1.Text), &O0, &O0, SW_ShowMaximize)
For z = 1 To 80
    SendKeys z & "%{d}{v}", True
Next z
If Txt1.Text = "" Then
MsgBox "This button has no command line!", vbCritical, "Unasigned Command
Line"
End If
End Sub

The problem is that this will open and start the presentations from a CD,
however when opening from tha "A" and "C" drives a dialoge box opens within
PowerPoint with the following:

"File name" is being modified by Alan Murphy. Do you want to open it as read
only?

Why does this do this and how can I by pass it.

If you know how to do this please E-Mail me.

Thanks!




Fri, 23 Aug 2002 03:00:00 GMT
 
 [ 1 post ] 

 Relevant Pages 

1. Please unsuscribe following e-mail address

2. Please unsuscribe following e-mail address

3. to get a lot of records of mail addresses from SQL 6.5 to mail server

4. to get a lot of records of mail addresses from SQL 6.5 to mail server

5. to get a lot of records of mail addresses from SQL 6.5 to mail server

6. Extracting Snail Mail Addresses from e-mail

7. Help E-mail address

8. I need help with my e-mail address

9. Help me find an e-mail address

10. Please Help: Need SQL Server ODBC client v3.60.x to correct a date problem

11. Please Help me find the correct newsgroup

12. Please help me! (Correct Message)


 
Powered by phpBB® Forum Software