Results 1 to 9 of 9

Thread: how to use the insert picture form

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2003
    Location
    france
    Posts
    71

    how to use the insert picture form

    in excel, when you use insert \ picture \ from file you got a dialog box who appear, I want to use it and get back the adress of the file, and then do my business with it, but i don't know how to do

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    ??
    What do you need?, the code to insert a picture
    VB Code:
    1. ActiveSheet.Pictures.Insert("C:\Pictures\Terst.bmp").Select
    (got that from the macro-recorder.)

    Or what?
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2003
    Location
    france
    Posts
    71
    I want the user, to choose his picture with this form, and i want to get the link as a text

  4. #4
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    In this case use the commondialog, you can set the filter to whatever file-extensionm you need and you get the filename and path back.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 2003
    Location
    france
    Posts
    71
    what is the common dialog where is it and how to use it, i'm working on vba for excel

  6. #6
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    Oh, sorry, can't find it in VBA either.
    Try this
    [vbcode9
    Dim dlganswer
    dlganswer = Application.Dialogs(xlDialogOpen).Show
    [/Highlight]
    and look into the help section
    Have to leave, long weekend is starting!
    By
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jun 2003
    Location
    france
    Posts
    71
    you're too lucky actually i'm in china working 6 days a week

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jun 2003
    Location
    france
    Posts
    71
    ok this code is perfect

    VB Code:
    1. Dim dlganswer
    2. dlganswer = Application.Dialogs(xlDialogInsertPicture).Show

    but i still don't know how to get the path of the file as a text

  9. #9
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    Hi, French-China-Men
    Why don't you use the same source for that information I'd be using? Exel-VBA-Help!
    I don't have that at my home-computer, so it's up to you now!
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

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