2013-02-17 6 views
0
ActiveWindow.ViewType = ppViewThumbnails 

를 사용하여 PowerPoint에서 ppViewThumbnails에 ActiveWindow.ViewType을 변경하는 방법 :다음과 같은 오류 메시지에 코드 실행 위의 VBA

"DocumentWindow (unknown member) : Invalid enumeration value." 

도움말

+1

모든 사람의 이익을 사용하는 MS 파워 포인트의 버전을 적어주십시오 위해? 2003, 2007, 2010..etc .. – bonCodigo

+1

미안하지만, Office 2007을 사용하고 있습니다. – kagen88

답변

2

귀하의 질문이 아니라 아주 짧은 ... 정당화하는 것입니다하시기 바랍니다 공정한 답을주기위한 질문으로 그러나 귀하의 오류 메시지 (감사 미덕이있다) 여기에서 찾고 확인할 수있는 것입니다 :

When you try to programmatically view the thumbnails of a Microsoft PowerPoint presentation, you may receive a run-time error message that you have gotten. This behavior occurs because PowerPoint is not designed to let you view the thumbnails in the entire active window. Thumbnails can be viewed only in the Thumbnail pane to the left of the slide pane. The lines of code described in the "Symptoms" section attempt to display the thumbnails in the entire active window.

해결 방법은 위의 기술 자료 문서에 나와있다. 그래도 멈추지 않으면 알려주세요.

이 문제를 해결하려면 활성화되어있는 창을 확인한 다음 미리보기 창을 활성화해야합니다. 대신보기를 가정의

ppthumnails이며, 첫 번째 사용하여 확인하려고 IF 다음

With ActiveWindow 
    If .ActivePane.ViewType <> ppViewThumbnails Then 
     .Panes(1).Activate 
     .ViewType = ppViewThumbnails 
     CheckView = True 
    Else 
     CheckView = False 
     End If 
    End With 
+0

내 질문에 답해 주셔서 감사합니다.하지만 여전히 ".ViewType = ppViewThumbnails"줄에 같은 오류 메시지가 표시됩니다. sendkeys.SendKeys "% wi"를 사용하여 해결책을 찾았습니다. – kagen88