msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Open a .pps from VBA, then exit slideshowview without closin

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax
Author Message
stenderdk



Joined: 04 Oct 2007
Posts: 1

PostPosted: Wed Jun 21, 2006 11:49 am    Post subject: Open a .pps from VBA, then exit slideshowview without closin Reply with quote

Hi all,

I'm having a problem with the above.

To be precise, I need to - from VBA - open a .pps file and take it to
edit-mode.

It's a part of something larger, but it's generally like this:

(this could be in a module, triggered by a commandbutton)

Dim thepres As Presentation

file = "C:\test.pps"
Set thepres = Presentations.Open(file, msoFalse, msoFalse, msoTrue)
With thepres
.SlideShowWindow.View.Exit
End With
End Sub

But because it's a .pps file, the file closes after the 'View.Exit'
part - and I need it to remain open in edit mode.

Any suggestions?

Best regards
Martin

Archived from group: microsoft>public>vb>syntax
Back to top
View user's profile Send private message
Jan Hyde



Joined: 04 Oct 2007
Posts: 1211

PostPosted: Wed Jun 21, 2006 9:01 pm    Post subject: Re: Open a .pps from VBA, then exit slideshowview without cl Reply with quote

stenderdk@gmail.com's wild thoughts were released on 21 Jun
2006 07:49:11 -0700 bearing the following fruit:

>Hi all,
>
>I'm having a problem with the above.

The 'Hi' or the 'all'?

>
>To be precise, I need to - from VBA - open a .pps file and take it to
>edit-mode.

To be honest you be better off in a VBA group, even better
if it's a powerpoint VBA group.

J

>It's a part of something larger, but it's generally like this:
>
>(this could be in a module, triggered by a commandbutton)
>
>Dim thepres As Presentation
>
>file = "C:\test.pps"
>Set thepres = Presentations.Open(file, msoFalse, msoFalse, msoTrue)
> With thepres
> .SlideShowWindow.View.Exit
> End With
>End Sub
>
>But because it's a .pps file, the file closes after the 'View.Exit'
>part - and I need it to remain open in edit mode.
>
>Any suggestions?
>
>Best regards
>Martin


Jan Hyde (VB MVP)

--
Many a women who thinks she has purchased a dress for the ridiculous price has actually bought it for an absurd figure.

(Donna Eaker)

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
How can VB6 Exe exit with a Return Code I want to run a VB6 Exe using Windows Scripting Host. I need to determine if the VB6 Exe ran successfully or failed with an error. I'm using the following VB Script to run the Exe: Dim liReturnCode Dim loShell 'Run Executable Set loShell = WScript.Cre

Open Hi all! In a VB6 application I need to load a form whose name is stored in a variable (as string). Any ideas? Thanks Kostas

How to open an mml file from VB I am trying to open an Meta Mail Language file (mml) from VB. Anyone knows a COM object to handle it? TIA

Open statement Hi I use VBA in MS Excel. I am trying to create files for inputting and saving the data. The code including the open statement is as follow: For k = 1 To NoofFiles Open InFileName(k) For Input As #k nd = 0 Do If EOF(1) Then Exit Do nd = nd + 1 Input #k, X

How do you open access97 db with a password from vb6? I have an ado connection and keep getting an error of: "Cannot start your application. The workgroup information file is missing or opened exclusively by another user." But my only group is Admins and my user is Admin. my code is as follows: Dim DbQD As A
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group