HI every one
I have a user form that uploads and image from file into an image box/frame, the form also has a couple of Combo boxes and textboxes. I am trying to save the information from the user form to a worksheet with the following code:
Private Sub Cmdadd_Click()
Dim iRow As Long
Dim ws As Worksheet
Set ws = Worksheets("Area 1")
'find first empty row in database
iRow = ws.Cells.Find(What:="*", SearchOrder:=xlRows, _
SearchDirection:=xlPrevious, LookIn:=xlValues).Row + 1
With ws
.Cells(iRow, 1).Value = Me.Image1.Value
.Cells(iRow, 2).Value = Me.ComboBox1.Value
.Cells(iRow, 3).Value = Me.ComboBox2.Value
.Cells(iRow, 4).Value = Me.TextBox2
.Cells(iRow, 5).Value = Me.TextBox3
.Cells(iRow, 6).Value = Me.TextBox6
.Cells(iRow, 9).Value = Me.TextBox4
.Cells(iRow, 8).Value = Me.TextBox5
End With
End Sub
All the information apart from the image are being moved to the worksheet. I'm not to sure what I am doing wrong.
Thank you for your help
Tony
Bookmarks