LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default Is this "If Statement" Possible?

Turn on the macro recorder (Tools | Macro Record new macro...),
insert an image from a file, delete the inserted image, and turn off
the recorder.

XL will give you the necessary starter code that you can then modify
and generalize.

--
Regards,

Tushar Mehta, MS MVP -- Excel
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article , beeawwb
says...
What about with VBA? This is something that's intrigued me for a while,
and I've been waiting for a project where I might get to test it out.

Specifically, I was thinking in terms of a card game. Have an array of
52 cards, and 52 card pictures stored on the hard drive. Based upon
what random value was called, load a picture.

So, for example, if the array randomly selects DI,4 (4 of Diamonds)
then make the first picture DI4.jpg

Any way to have VBA code change / modify OLE objects? I know in access
I had a way to do it, where I stored 52 pictures as an OLE table. But
Excel doesnt work that way.

So, any light that can be shed on that, thanks. :)

-Bob


---
Message posted from http://www.ExcelForum.com/


 
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
Combining "IF"statement with "Vlookup" Malcolm McMaster[_2_] Excel Discussion (Misc queries) 9 October 21st 14 03:13 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
embedding "ISERROR" function into an "IF" statement [email protected] Excel Worksheet Functions 8 January 4th 07 12:01 AM
"IF" statement & "strikethrough" formatting jijy Excel Worksheet Functions 3 March 22nd 06 06:56 PM


All times are GMT +1. The time now is 07:58 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"