|
-
Mar 29th, 2007, 06:22 AM
#1
Thread Starter
New Member
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.
-
Mar 29th, 2007, 12:21 PM
#2
Re: I need help Quick
Does this help?
vb Code:
Private Sub CommandButton1_Click()
Dim sFilename As String
sFilename = Application.GetOpenFilename("All files (*.*), *.*")
' To Exit if Cancel was pressed
If sFilename = "False" Then Exit Sub
ActiveSheet.Pictures.Insert(sFilename).Select
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
-
Mar 29th, 2007, 12:31 PM
#3
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|