Results 1 to 3 of 3

Thread: I need help Quick[RESOLVED]

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2004
    Location
    Columbia,SC
    Posts
    3

    Exclamation I need help Quick[RESOLVED]

    I want to be able to click a button and prompt an Open file Dialog box and then I want to copy the file (.jpg, .gif, .bmp) selected and paste it on the excel sheet in (A1). I'm using excel 2000.

    Last edited by krs_si; Mar 29th, 2007 at 12:32 PM.

  2. #2
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: I need help Quick

    Does this help?

    vb Code:
    1. Private Sub CommandButton1_Click()
    2.  
    3. Dim sFilename As String
    4.  
    5. sFilename = Application.GetOpenFilename("All files (*.*), *.*")
    6.  
    7. ' To Exit if Cancel was pressed
    8. If sFilename = "False" Then Exit Sub
    9.  
    10. ActiveSheet.Pictures.Insert(sFilename).Select
    11.  
    12. End Sub
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2004
    Location
    Columbia,SC
    Posts
    3

    Re: I need help Quick

    Yes, 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