haroon620

New Member
Joined
Jul 24, 2018
Messages
1
i prepare a userfom as entery form
i want to save the pic alongwith the name but there just show the numerical value instead of image in excel sheet
i write the code as


Dim haroorn As Long
Dim abc As Worksheet


Set abc = Worksheets("Sheet1")
haroon = Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Row
With abc
With abc
.Cells(haroon + 1, 1).Value = Me.TextBox1.Value
.Cells(haroon + 1, 2).Value = Me.TextBox2.Value
.Cells(haroon + 1, 3).Value = Me.Image1.Picture
.Cells(haroon + 1, 4).Value = Me.TextBox3.Value

End With


Me.TextBox1.Value = ""
Me.TextBox2.Value = ""
Me.TextBox3.Value = ""
Me.image1.image = ""

End with

End sub

can someone help to solve the problem
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top