#1
|
|||
|
|||
VBA Powerpoint Macros: Set String in one Macro, use it in another
I'm trying to create a Macro in Powerpoint so that when a list of certain items is presented, I can select a few of those and then use that information in a different macro to automatically place a picture in a Powerpoint for each item selected.
I already managed to get the second part done, so placing the pictures in the powerpoint is no problem. My problem lays with the selecting part. The way I figured to do it is to create a macro for each item in the list so for example the list is: - Bed - Bug - Bath - Broom In front of each item I want to place a square which when clicked upon would be ticked off and sets a string to a certain value so if you would click on the box of 'Bed' it would put a tick in that box and do: strEquip1 = "Bed" In the second Macro, which will only be used as soon as all items needed were selected, I want that string from the other Macro to be imported so it would only import the strings that were created by clicking those boxes in other macros. I hope my explanation makes a bit of sense, I'm not a programmer at all and I'm doing this as a side project for myself and for fun. Thanks in advance for the help! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
inputing japanese string in word's macro = ?? | tyki | Word VBA | 0 | 02-29-2016 03:09 AM |
Macro to reverse a test string | Jennifer Murphy | Word VBA | 5 | 01-16-2014 03:19 PM |
Call Macro from Input Box String | Paulsh | Word VBA | 1 | 11-01-2011 03:15 AM |
Macros in Powerpoint | Dumitra | PowerPoint | 1 | 08-19-2010 07:26 AM |
Macro or Function to know wether a string is included in a text | Eduardo | Word VBA | 5 | 06-15-2009 01:55 AM |