ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 6,056
- Office Version
- 2024
- Platform
- Windows
Just to give you an idea of what i have at present.
On my worksheet called DATABASE I have values in cells across the page.
Double clicking the customers name in column A loads a userform with these values & the code is shown below.
Now it is this DATABASE im interested in but from another worksheet.
The worksheet in question is called INV
In cell G13 is a drop down where the user selects a customer from the list & that customer is then shown in cell G13
Now i have a command button which when pressed should take note of customer in cell G13 & load the userform / details just like it did on the DATABASE sheet.
The point of this is so i dont have to keep flicking form sheet INV to DATABASE to look at a value.
Please advise.
On my worksheet called DATABASE I have values in cells across the page.
Double clicking the customers name in column A loads a userform with these values & the code is shown below.
VBA Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Column = 1 Then
If Intersect(Range("A6", Cells(Rows.count, "A").End(xlUp)), Target) Is Nothing Then Exit Sub
Cancel = True
Database.LoadData Me, Target.Row
End If
End Sub
Now it is this DATABASE im interested in but from another worksheet.
The worksheet in question is called INV
In cell G13 is a drop down where the user selects a customer from the list & that customer is then shown in cell G13
Now i have a command button which when pressed should take note of customer in cell G13 & load the userform / details just like it did on the DATABASE sheet.
The point of this is so i dont have to keep flicking form sheet INV to DATABASE to look at a value.
Please advise.
Last edited: