Dave
Assuming you have JE's sample workbook open in front of you.
Select Sheet1 and right-click on the sheet tab and "View Code"
You will find the event code in there.
That is where you would enter the event code in your workbook.
Now, to your questions............
1. Me.Pictures means Worksheet pictures. A Picture is an Object and Visible
is a property of that object. The line Me.Pictures.Visible = False says "hide
all the pictures on the sheet"
Me. is just another name for worksheet. Those are all the pictures you place
anywhere on the worksheet. I do mean anywhere.......
2. oPic is a variable which JE has named. Could have easily been named MyPic.
Just refers to whatever picture is assciated with the A2 DV dropdown selection
and returned by the VLOOKUP formula in F1
3. Sheet event code is generally entered into the sheet module. Recorded
macros are stored in a General Module in the workbook.
To open a General Module, with your workbook open, hit ALT + F11 to open the
Visual Basic Editor.
Select your workbook/project and expand to Modules. Double-click on a module to
open and see your recorded code.
Not sure why you would wish to place your recorded amcro behind the picture
lookup macro.
Please elaborate.
Gord
>Oh, I see that now in the macro (told you I was a "Newby" to VBA programming,
>used to do lots of Lotus macros back in the 2.2 days, yes.. I'm old).
[quoted text clipped - 15 lines]
>
>Thanks for your advice and patience!
Gord Dibben MS Excel MVP
Gord Dibben - 16 Dec 2006 22:57 GMT
Addenda.........
For more on learning about macros see David McRitchie's "getting started" site.
http://www.mvps.org/dmcritchie/excel/getstarted.htm
Also his pages on Events
http://www.mvps.org/dmcritchie/excel/event.htm
Chip Pearson also has some info on Events at his site.
http://www.cpearson.com/excel/events.htm
Gord
>Dave
>
[quoted text clipped - 54 lines]
>>
>>Thanks for your advice and patience!
Tanya - 15 May 2008 03:41 GMT
Hello Gord
I have been reading this thread with interest, and basically trying to
achieve the same outcome.
My question is, how do you associate the name picture 1 with the object?
Thanking you in advance.
Kind Regards
Tanya
> Dave
>
[quoted text clipped - 56 lines]
>
> Gord Dibben MS Excel MVP
Gord Dibben - 16 May 2008 00:49 GMT
When you create or insert an object Excel gives it a name.
In somewhat haphazard manner, I might add. I just inserted a clipart picture
and Excel named it Picture 88
To re-name an Object from Picture 88 to Picture 1 just select the object.
You will see Picture 88 in the Name Box to left of Formula Bar.
Simply type in a new name......Picture 1
Gord
>Hello Gord
>
[quoted text clipped - 68 lines]
>>
>> Gord Dibben MS Excel MVP
Tanya - 16 May 2008 07:10 GMT
Ohh so simple... Thank you again, greatly appreciated.
cheers
Tanya
> When you create or insert an object Excel gives it a name.
>
[quoted text clipped - 81 lines]
> >>
> >> Gord Dibben MS Excel MVP