New here and need a little help if anyone can help?
I have a 2 spreadsheets,
What I wish to do is once the user clicks on the button an input box pops up requesting the user to input a unique identifier. In this instance it will be stored as userPronto, I then wish to search a sell range in worksheet DATA! in column AE and validate if the inputted data is in the cell range of that column. If it is not found I want to return an error message to the user. If it is found I then wish to store userPronto as itemCode then search the adjacent colums to retrieve data from specific columns,
for example the user inputs 19066, this is locataed at DATA!AE5, I know the other data I need is in loctation A5 (supplier part number), D5 (Brand), E5 (Description 1), K5 (Retail Price), L5 (Promo price), Q5 (Description 2), AG5 (Online y/n)
so far I have the following VBA, which will return the users input, just not sure where to go from there?
Sub myPronto()
Dim ws As Worksheet, myCounter
Dim userPronto As String
Dim itemCode As String
Dim rowLookup As String
Dim Brand As String
Dim itemDesc1 As String
Dim itemDesc2 As String
Dim onlineItem As String
Dim retailPrice As String
Dim promoPrice As String
userPronto = ".." + Application.InputBox("Input Pronto No. exluding the '..'")
itemCode = userPronto
'VLOOKUP(userPronto,DATA!AE1:AE9,2,FALSE)
Range("ticket!A1").Value = itemCode
End Sub
Anyway once i am able to store the results of each cell I wish to display them in a user form in the TICKET worksheet
which I can then print out. Basically creating a ticket,
Thanks.
I have a 2 spreadsheets,
- Spreadsheet named "SOH Pronto", this is my data source which I update periodically, it holds product information, description, brand, supplier, price etc.
- Spreadsheet named "Pronto Query", which is the file the user will use it contains the following worksheets;
- DASHBOARD : Just a worksheet with user instructions and button
- DATA: a table generated with a connection to the spreadsheet "SOH Pronto"
- TICKET: a spreadsheet where I wish to display my results onto a user form which I can print out.
What I wish to do is once the user clicks on the button an input box pops up requesting the user to input a unique identifier. In this instance it will be stored as userPronto, I then wish to search a sell range in worksheet DATA! in column AE and validate if the inputted data is in the cell range of that column. If it is not found I want to return an error message to the user. If it is found I then wish to store userPronto as itemCode then search the adjacent colums to retrieve data from specific columns,
for example the user inputs 19066, this is locataed at DATA!AE5, I know the other data I need is in loctation A5 (supplier part number), D5 (Brand), E5 (Description 1), K5 (Retail Price), L5 (Promo price), Q5 (Description 2), AG5 (Online y/n)
so far I have the following VBA, which will return the users input, just not sure where to go from there?
Sub myPronto()
Dim ws As Worksheet, myCounter
Dim userPronto As String
Dim itemCode As String
Dim rowLookup As String
Dim Brand As String
Dim itemDesc1 As String
Dim itemDesc2 As String
Dim onlineItem As String
Dim retailPrice As String
Dim promoPrice As String
userPronto = ".." + Application.InputBox("Input Pronto No. exluding the '..'")
itemCode = userPronto
'VLOOKUP(userPronto,DATA!AE1:AE9,2,FALSE)
Range("ticket!A1").Value = itemCode
End Sub
Anyway once i am able to store the results of each cell I wish to display them in a user form in the TICKET worksheet
which I can then print out. Basically creating a ticket,
Thanks.