Click here to Skip to main content
15,907,183 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Single Sign on Pin
Dave Kreskowiak18-Jun-10 8:06
mveDave Kreskowiak18-Jun-10 8:06 
GeneralRe: Single Sign on Pin
berba22-Jun-10 23:15
berba22-Jun-10 23:15 
GeneralRe: Single Sign on Pin
Dave Kreskowiak23-Jun-10 1:33
mveDave Kreskowiak23-Jun-10 1:33 
QuestionPowerPoint Application Pin
rdop18-Jun-10 1:13
rdop18-Jun-10 1:13 
AnswerRe: PowerPoint Application Pin
ddecoy18-Jun-10 1:16
ddecoy18-Jun-10 1:16 
GeneralRe: PowerPoint Application Pin
rdop18-Jun-10 1:36
rdop18-Jun-10 1:36 
GeneralRe: PowerPoint Application Pin
JR21218-Jun-10 2:13
JR21218-Jun-10 2:13 
GeneralRe: PowerPoint Application Pin
EliottA18-Jun-10 2:27
EliottA18-Jun-10 2:27 
I guess you missed the copyright on that code snippet...
' --------------------------------------------------------------------------------
' Copyright ©1999-2009, Shyam Pillai, All Rights Reserved.
' --------------------------------------------------------------------------------
' You are free to use this code within your own applications, add-ins,
' documents etc but you are expressly forbidden from selling or 
' otherwise distributing this source code without prior consent.
' This includes both posting free demo projects made from this
' code as well as reproducing the code in text or html format.
' --------------------------------------------------------------------------------


I don't mind you copy / pasting it really, but it fucking pisses me off that you don't at least give credit to the original link. (Here, by the way.[^])

and you could have posted the second entry on that page as well...
How to open a PowerPoint Show (*.pps) file thru code



It's fairly simple to open a PowerPoint file (*.ppt) for editing using VBA code however opening a PowerPoint Show (*.pps) file for editing is altogether another matter. Use the Presentation.Open method and it defaults to open the file in Slide Show mode. This might not be desirable. The routine below illustrates a manner of woring around the default behaviour and opening the file for editing. The routine also illustrates the use of the ScreenUpdating property (code listed above).

' --------------------------------------------------------------------------------
' Copyright ©1999-2009, Shyam Pillai, All Rights Reserved.
' --------------------------------------------------------------------------------
' You are free to use this code within your own applications, add-ins,
' documents etc but you are expressly forbidden from selling or 
' otherwise distributing this source code without prior consent.
' This includes both posting free demo projects made from this
' code as well as reproducing the code in text or html format.
' --------------------------------------------------------------------------------
Sub OpenPPSForEdit()

On Error GoTo ErrHandle
Dim pShow As Presentation
' Lock the window to prevent refreshing
' See above article example for the code
   ScreenUpdating = False
'Open the show, however use additional flag - WithWindow set to FALSE

   Set pShow = Presentations.Open("C:\sample.pps",  _
                        WithWindow:=msoFalse)
'Open a window now to the presentation for editing
   pShow.NewWindow
' Unlock the window to start refreshing again
   ScreenUpdating = True
   Exit Sub

ErrHandle:
    If Err.Number <> 0 Then
        MsgBox Err.Number & " " & Err.Description, _
               vbCritical + vbOKOnly, "Error"
    End If
End Sub


GeneralRe: PowerPoint Application Pin
JR21218-Jun-10 20:38
JR21218-Jun-10 20:38 
GeneralRe: PowerPoint Application [modified] Pin
MsmVc18-Jun-10 2:31
MsmVc18-Jun-10 2:31 
GeneralRe: PowerPoint Application Pin
EliottA18-Jun-10 2:33
EliottA18-Jun-10 2:33 
GeneralRe: PowerPoint Application [modified] Pin
MsmVc18-Jun-10 2:42
MsmVc18-Jun-10 2:42 
GeneralRe: PowerPoint Application Pin
JR21221-Jun-10 3:36
JR21221-Jun-10 3:36 
Questionnewbie question on updating Access mdb tables Pin
john12617-Jun-10 5:46
john12617-Jun-10 5:46 
QuestionRe: newbie question on updating Access mdb tables Pin
DaveAuld17-Jun-10 6:26
professionalDaveAuld17-Jun-10 6:26 
QuestionRe: newbie question on updating Access mdb tables Pin
john12617-Jun-10 6:36
john12617-Jun-10 6:36 
AnswerRe: newbie question on updating Access mdb tables [modified] PinPopular
AnnieMacD17-Jun-10 7:24
AnnieMacD17-Jun-10 7:24 
GeneralRe: newbie question on updating Access mdb tables Pin
john12617-Jun-10 8:49
john12617-Jun-10 8:49 
GeneralRe: newbie question on updating Access mdb tables Pin
AnnieMacD17-Jun-10 11:26
AnnieMacD17-Jun-10 11:26 
QuestionAdd Combobox to Datagridview at runtime. Pin
Nielvh17-Jun-10 4:35
Nielvh17-Jun-10 4:35 
AnswerRe: Add Combobox to Datagridview at runtime. Pin
dan!sh 17-Jun-10 5:43
professional dan!sh 17-Jun-10 5:43 
GeneralRe: Add Combobox to Datagridview at runtime. Pin
Nielvh18-Jun-10 11:18
Nielvh18-Jun-10 11:18 
QuestionPassing Events Pin
Sonhospa17-Jun-10 3:11
Sonhospa17-Jun-10 3:11 
AnswerRe: Passing Events Pin
EliottA17-Jun-10 3:49
EliottA17-Jun-10 3:49 
NewsRe: Passing Events Pin
Sonhospa17-Jun-10 5:03
Sonhospa17-Jun-10 5:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.