ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,738
- Office Version
- 2007
- Platform
- Windows
Evening all,
I am making a small userform & would like to ask for some help / assistance with its set up if i may.
Currently i am able to select an item from the drop down list & its image is shown but would like the following to be also included.
Database is as follows.
Column A = Item Number
Column E = Cost
Column F = Url to image
So when i make a selection from the drop down list i would like to also see the txt boxes mentioned in the code below filed with the info that will be in the cell from column A & E mentioned above.
You will also see there is a CommandButton2 of which when pressed would take me to the image on the Internet using the info from whats in the cell in column F
I have currently the code as shown below.
I am making a small userform & would like to ask for some help / assistance with its set up if i may.
Currently i am able to select an item from the drop down list & its image is shown but would like the following to be also included.
Database is as follows.
Column A = Item Number
Column E = Cost
Column F = Url to image
So when i make a selection from the drop down list i would like to also see the txt boxes mentioned in the code below filed with the info that will be in the cell from column A & E mentioned above.
You will also see there is a CommandButton2 of which when pressed would take me to the image on the Internet using the info from whats in the cell in column F
I have currently the code as shown below.
Code:
Option ExplicitPrivate Sub cmbImg_Change()
On Error Resume Next
Dim myImg
myImg = Me.cmbImg.List(Me.cmbImg.ListIndex, 2)
Me.Image1.Picture = LoadPicture(myImg)
Me.Label1 = Me.cmbImg.List(Me.cmbImg.ListIndex, 1)
End Sub
Private Sub CommandButton2_Click()
End Sub
Private Sub txtCost_Change()
End Sub
Private Sub txtItemNumber_Change()
End Sub