Results 1 to 7 of 7

Thread: Put a specific picture in Excel...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    Shannon, Quebec, Canada
    Posts
    251

    Put a specific picture in Excel...

    Hi,

    I have a text field in my database where I put the name of a picture.jpg...Depending of which record I have selected, I want Excel to search for the picture on the server/pictures where I put all my pictures, and insert the picture in my .xls

    Is it possible? and how can I make it?

    Thanks

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    Shannon, Quebec, Canada
    Posts
    251

    ...

    Anybody?

  3. #3
    Fanatic Member InvisibleDuncan's Avatar
    Join Date
    May 2001
    Location
    Eating jam.
    Posts
    819
    I'm not entirely certain I understand the question.What is your database in, and where does Excel come into all this?
    Indecisiveness is the key to flexibility.

    www.mangojacks.com

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    Shannon, Quebec, Canada
    Posts
    251

    ...

    Ok, I have an access2000 database, and I have a project in VB6...I have a button in VB that calls a .xls and I transfer my primary key in the .xls...and in VBA I put a SQL statement

    "SELECT * FROM residentiel WHERE NoDossier = '" & Feuil1.Range("C22").Value & "'"

    Feuil2.Range("C4").Value = objRS.Fields("nocivic").Value...etc...

    but I have a field that I called picture and in it there is the path of the picture and the name of the picture.jpg and now with the path I want to put the picture in a specific cell...can I do this?

  5. #5
    Fanatic Member InvisibleDuncan's Avatar
    Join Date
    May 2001
    Location
    Eating jam.
    Posts
    819
    Is this what you mean...?
    VB Code:
    1. Range("A1").Select
    2. ActiveSheet.Pictures.Insert ("C:\My Documents\Bitmaps\P7270002.JPG")
    Indecisiveness is the key to flexibility.

    www.mangojacks.com

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    Shannon, Quebec, Canada
    Posts
    251

    ...

    Probably, I'll test it

    Thanks!

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    Shannon, Quebec, Canada
    Posts
    251

    ...

    Probably, I'll test it

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width