Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to set up a spreadsheet where it will embed one of two drawings
(which I copy-clipped from AutoCAD) based on a parameter within the worksheet. I thought when I created the second drawing it would automatically give a different formula, but both of them say: =EMBED("AutoCAD.Drawing.16",""). In essence I'm looking for a formula such as this: =If(A1="x",EMBED("AutoCAD.Drawing.16",""),EMBED("A utoCAD.Drawing.17","")) Is this possible? If so, how do I go about it? Why does it bring different drawings in with the same number (16)? If I try to change the "16" on the second drawing it gives me an error [The text you entered is not a valid reference or defined name]. So many questions, so few answers. I am using Excel 2000 & AutoCAD 2006. Bob |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Look in the Name Box (left of the Formula Bar) for the object's name. You can
change it if you like. If there are only a few pictures involved, I think I would embed all the pictures and toggle the visible property instead of inserting and deleting. You probably know this, but a formula per se can't execute an action like this (i.e. change the worksheet environment). You will need to use, for example, worksheet event code or a macro. Regards, Greg "Robert Dieckmann" wrote: I am trying to set up a spreadsheet where it will embed one of two drawings (which I copy-clipped from AutoCAD) based on a parameter within the worksheet. I thought when I created the second drawing it would automatically give a different formula, but both of them say: =EMBED("AutoCAD.Drawing.16",""). In essence I'm looking for a formula such as this: =If(A1="x",EMBED("AutoCAD.Drawing.16",""),EMBED("A utoCAD.Drawing.17","")) Is this possible? If so, how do I go about it? Why does it bring different drawings in with the same number (16)? If I try to change the "16" on the second drawing it gives me an error [The text you entered is not a valid reference or defined name]. So many questions, so few answers. I am using Excel 2000 & AutoCAD 2006. Bob |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for the tip. Now the second half of the problem. How exactly do
I set up this event in VBA. I have re-named my two objects to fdnSB & fdnHTT. I tried the following code but it did not work: fdnSB.Visible = True This should be simple, but what am I missing? Thanks for helping a novice. *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Drawing/image/picture not visible in Excel on one pc | Excel Discussion (Misc queries) | |||
inserting a VISIO drawing into a worksheet | Excel Worksheet Functions | |||
Inserting a drawing object into a cell | Excel Programming | |||
get a picture width and height without inserting the picture | Excel Programming | |||
how do i import a picture or drawing into an excel spreadsheet? | Excel Discussion (Misc queries) |