+ Reply to Thread
Results 1 to 1 of 1

Detect selection change in PP slide and return values to OPEN non-modal userForm

  1. #1
    Registered User
    Join Date
    07-20-2015
    Location
    Netherlands
    MS-Off Ver
    Win10, Off2016
    Posts
    4

    Detect selection change in PP slide and return values to OPEN non-modal userForm

    Hi All,

    Currently I am working on some tooling for PowerPoint and I need to be able to transfer the name and dimensions (when another element is selected by the user) from the current selection to the open (loaded and visible) userForm (frmDimenions).

    GetSetDimensions_PP_m..png

    I already figured out it should be possible with the WindowSelectionChange(ByVal Sel As Selection) event, for which I put code in a class module:

    Please Login or Register  to view this content.
    GetSetDimensionsMods_PP_s.PNG

    Code to get dimensions back from Slide:

    Please Login or Register  to view this content.
    So far so good, but I can't figure out where to put the App_WindowSelectionChange procedure...
    In Excel I'd put it in the sheet or ThisWorkbook module, but in PowerPoint there is no module for the Presentation or Slide object.
    I've tried it in the modOwnCode and in the frmDimensions (already less likely, I thought), but I don't get the dimensions back (tested with debug.print to immediate window too).

    Any suggestions?

    Grtz BartH

    PS

    I just thought I had it by putting the code into the Class module but this doen't do it too..

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Last edited by BartH_NL; 08-09-2017 at 10:16 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1