Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Inserting a picture/drawing

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 747
Default Inserting a picture/drawing

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Inserting a picture/drawing

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drawing/image/picture not visible in Excel on one pc Amedee Van Gasse Excel Discussion (Misc queries) 1 January 26th 09 03:30 PM
inserting a VISIO drawing into a worksheet Kurt Schoenrock Excel Worksheet Functions 1 August 24th 05 11:35 PM
Inserting a drawing object into a cell RPrinceton Excel Programming 2 June 10th 05 07:35 PM
get a picture width and height without inserting the picture Dorothy Excel Programming 1 January 13th 05 05:06 AM
how do i import a picture or drawing into an excel spreadsheet? ucastores Excel Discussion (Misc queries) 6 December 1st 04 05:40 AM


All times are GMT +1. The time now is 02:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"