+ 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, Off2019-365
    Posts
    44

    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)

Similar Threads

  1. Exit Userform to return to main code, but keep userform open
    By jombler74 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-04-2014, 04:01 AM
  2. excel 2013 vba - show modal userform - can't open another .xls file
    By excel_joe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-18-2014, 01:37 PM
  3. Unable to Detect When UserForm MultiSelect ListBox Selection Changes
    By ShortSword in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-07-2012, 10:49 PM
  4. Sub to detect any change in cell selection within any open workbook?
    By Nickster64 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-03-2008, 06:38 PM
  5. Keep Modal UserForm Alive after closing 2nd userform using 2007?
    By ShredDude in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2008, 03:12 PM

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