Excel VBA Userform to Search and Update Data - Excel VBA Userform Example

This Excel VBA Userform example explains, how to search and update excel sheet data with userform.You can update existing data using UserForm in Excel VBA. If you want to search data
on Excel worksheet by entering Specific ID in Text Box and UserForm will display all relevant data and in case of any modification, you can change through Userform.
Watch UserForm Real Time Examples at below link :
• Excel VBA Tutorial 15 ...

Пікірлер: 170

  • @javedahmed8343
    @javedahmed83432 жыл бұрын

    Beautifully explained. Left no place to say anything negative.

  • @tomkochka2058
    @tomkochka20582 жыл бұрын

    This was so easy to follow and just what I needed for a user form I was designing at work. Thank you!

  • @ExcelDestination

    @ExcelDestination

    2 жыл бұрын

    welcome

  • @aprhaaroeira3787
    @aprhaaroeira37872 жыл бұрын

    I really like this example!... Congratulations. i'm 68years men and i start now to understand something .Thanks

  • @pureauraspace3313
    @pureauraspace33133 жыл бұрын

    You have done so well with your explanation. It was quick and simple to go along

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    Glad you liked it

  • @ROVideos
    @ROVideos Жыл бұрын

    This is the best video I've found on the subject. Short, easy to follow. You are great.

  • @franciswood6104
    @franciswood610427 күн бұрын

    the best! easy to follow and understand because not only you make the code but also you explain what is the action following the code! more vids Dude!

  • @ebusdk
    @ebusdk3 жыл бұрын

    Thanks a million sir! Used this form as a stock-lookup/update for inventory

  • @greatlakeschorus6887
    @greatlakeschorus68874 жыл бұрын

    This Form works works better than the previous form that you sent me. I will Email you with a question or two. Thanks very much for your help!

  • @excitingoffers6730
    @excitingoffers67304 жыл бұрын

    this is the thing i was looking for... thank you very much sir for this upload.

  • @javedahmed8343
    @javedahmed83432 жыл бұрын

    Very subtle explanation. Very useful. Screen shot itself is very informative

  • @ExcelDestination

    @ExcelDestination

    2 жыл бұрын

    thanks

  • @joelabacherli1310
    @joelabacherli13104 ай бұрын

    Perfect video. These are the ones that make these concepts sink in and stick. Thank you very much for the informative walkthrough

  • @noah5656
    @noah56564 жыл бұрын

    Thank you so much!

  • @sunitapatil4677
    @sunitapatil46773 жыл бұрын

    Such a helping videos thank you very much Sir

  • @janiceshen3834
    @janiceshen38342 жыл бұрын

    Good to have your lecture, it's so clear ........

  • @ExcelDestination

    @ExcelDestination

    2 жыл бұрын

    Thanks

  • @eldaramaj2460
    @eldaramaj24603 жыл бұрын

    that code helped me a lot

  • @dangminhkhangdanorgan3000
    @dangminhkhangdanorgan30003 жыл бұрын

    Thank you! code very helpful for me in office.

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    Great to hear!

  • @brendanheslop5070
    @brendanheslop50704 жыл бұрын

    Lovely. Just the Job! Thanks

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    Glad you like it!

  • @royokinawa
    @royokinawa4 жыл бұрын

    Great information. Followed the steps and everything is working perfectly. Thank you. Do you have a VBA tutorial that uses the same concept but allows the user form to update multiple rows? Example: The search parameter of Completed will display a select number (10-15) work orders. Once populated a date will be added to update those orders.

  • @alexcalangi1362

    @alexcalangi1362

    3 жыл бұрын

    ^ this information would exponentially help my workflow as well!

  • @saadfarrukh3687

    @saadfarrukh3687

    2 жыл бұрын

    Gvď

  • @padmanathaprabuchandran254
    @padmanathaprabuchandran2543 жыл бұрын

    its really wonderful...thank you so much....

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    welcome

  • @johnpaulbadajos633
    @johnpaulbadajos6332 жыл бұрын

    Amazing, Thanks very informative. How about incorporating message for records not found within the sheets? thanks

  • @MrBijaypatni
    @MrBijaypatni4 жыл бұрын

    Great Great information. Thanks very useful

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    Glad it was helpful!

  • @kushalmukhoti
    @kushalmukhoti Жыл бұрын

    Great Video. Very simple and easy to understand. Is there any way that I can edit the search criteria itself? Suppose, I want to rectify a wrong customer ID. Is there any way to do this without deleting the whole entry and reentering the same after correction?

  • @JMallesham
    @JMallesham3 жыл бұрын

    Sir this is very useful information. Tqs Sir.

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    Welcome

  • @gustavobf5030
    @gustavobf50303 жыл бұрын

    THANKS!

  • @sandeepdhruv3826
    @sandeepdhruv38262 жыл бұрын

    Great, I was exactly looking for it, thanks bro great work 🙏

  • @ExcelDestination

    @ExcelDestination

    2 жыл бұрын

    Welcome 👍

  • @maheshkarwande6681

    @maheshkarwande6681

    2 жыл бұрын

    Thank you very much @excel destination, I was also looking for same

  • @DetroiterDave
    @DetroiterDave3 жыл бұрын

    I have been looking for a streamlined way to do this and your method works great! Thank you so much. One issue though: What if the user searches for a value that does not exist in the data? There needs to be a MsgBox indicating the value was not found. When I run the code with data not found, it just stalls and does nothing and the userform stays open.

  • @user-sw3ho1jk4h

    @user-sw3ho1jk4h

    2 жыл бұрын

    منننىت🛀🏾🛀🏾👨‍👩‍👦👨‍👨‍👦🏇🏇🏇🏇🏇

  • @MohAboAbdo
    @MohAboAbdo4 жыл бұрын

    Thank you so mutch.

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    You're welcome!

  • @JATINKUMAR-qu4vi
    @JATINKUMAR-qu4vi2 жыл бұрын

    Thank u very much

  • @yinyinmay871
    @yinyinmay871 Жыл бұрын

    Thank you very much, it's very useful.

  • @ExcelDestination

    @ExcelDestination

    Жыл бұрын

    Welcome

  • @Stockmarket_the_trader
    @Stockmarket_the_trader3 жыл бұрын

    Thanks for uploading... Please upload the one video on understanding of vba code...

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    Will upload soon

  • @alvingapay2592
    @alvingapay25924 жыл бұрын

    Great video Excel Destination. can you please add a code or teach us how to put a message if the PRODUCT CODE is not listed when we click the search and also message for "record has been updated" when record has been updated. thanks and more video please.

  • @competitiononly4431
    @competitiononly44313 жыл бұрын

    Teaching method is very good

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    Thanks and welcome

  • @NewYears1978
    @NewYears1978 Жыл бұрын

    This is almost perfect. It would be much better if you could search for containing strings so like Searching for product name and searching for a string would bring up results and then a next button would allow you to scroll through the results - instead of just giving one result.

  • @tousifrahman
    @tousifrahman3 жыл бұрын

    thanks a lot

  • @davecks3042
    @davecks30424 жыл бұрын

    Thank you . I find the forms are filled for text boxes and command boxes . But how about when we have option buttons? I couldn’t get the button tick . Your brilliance is again I seek

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    you can check the tutorial, given at below link to learn, list box, option box and other active x controls : kzread.info/dash/bejne/eKJ-l9V-YNDFmMo.html

  • @Damodar.Shetty
    @Damodar.Shetty3 жыл бұрын

    Awesome Sir 👌

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    Thanks ✌️

  • @competitiononly4431
    @competitiononly44313 жыл бұрын

    I pray for you successful in every wrok

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    Thank You!

  • @competitiononly4431
    @competitiononly44313 жыл бұрын

    Thanks Sir

  • @rossaronson1163
    @rossaronson11634 жыл бұрын

    Would it make a difference if the item I’m searching for is a combobox instead of a text box?

  • @querrythis
    @querrythis2 жыл бұрын

    Nice and simple.

  • @ExcelDestination

    @ExcelDestination

    2 жыл бұрын

    Thanks

  • @johng5295
    @johng52952 жыл бұрын

    Thanks in a million. Great content. Awesome imagination. Grade: A++💥

  • @ExcelDestination

    @ExcelDestination

    2 жыл бұрын

    welcome

  • @grayjappe562
    @grayjappe5622 жыл бұрын

    Hi, when building a user form, how do I set via search and update data so it searches and changes records vertically instead of horizontal rows?

  • @shellykomar
    @shellykomar2 жыл бұрын

    HI, Great Tutorial, I have to search the values according the reference value. which is in 6th column. how to code that?

  • @ISK.786
    @ISK.7862 жыл бұрын

    Hey great Video bro it made my work so easy, but i need help, instead of extracting data after typing it in box and search, will u pls show how to exract data frm dropdown list in the same user form with add buttion option??

  • @juhisinha9085
    @juhisinha90854 жыл бұрын

    Superb..

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    Thanks 🤗

  • @dieucao1742
    @dieucao17422 жыл бұрын

    Thanks for this video! However, if I have a lot of columns and rows, are there any ways I can do that in a shorter way or I have to do it one line by one line?

  • @user-er7np1qi3c

    @user-er7np1qi3c

    2 жыл бұрын

    ه ه ه ه ه ه ه ن ه ه ه ه ه ه ه ه ه ه ه هه ه ه هه هه ه ه هه ه ه ه ه ه ه ه ه ه ه ه ه ه ه هه ه هه ه ه ه هه ه ه ه ه ه ه ه ه ه ه ه ه هه ه ه ه ه ه ه هه ه ه ه ه ه ه ه ه هه ه ه ه ه ه هه ه ه ه ه هه ه ه هه ه ه ه ه هه هه ه ه ه ههه هه ه ه ه هه هه ه ه ه ه ه ه هه ه ه ه ه هه هههه ه ه ه ه هههه هه ه ه ه ه هه ه ههه ه هههههههه هه ه ههههههه ه ههههه ه ههههههه هههههههههههه هههههه هههههههههههههههههه هههههههههههههههههههه ننهنننننننننهننننننننننننننننننننننننننننننهننننننننننهننننننننهننننننننننننننننننننهنننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننهننننننننننننننننننننننننننننهننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننهنننننننننننننننننننننننننننننننهننننهننننننننننننننننننننننننننننننننننننننننننننننننننهننننهننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننهننننننننننننننننننننننننننننننننننننننننننننهنننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننننتبتلل

  • @madmidgy12
    @madmidgy124 жыл бұрын

    works like a dream! thanking you excel destination.....can this be adjusted to run through several sheets in a workbook?

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    Yes, absolutely (with some additional code)

  • @madmidgy12

    @madmidgy12

    4 жыл бұрын

    @@ExcelDestination thanks for quick reply....do you have any tutorials on how to run it across several sheets/tabs in a workbook ? I am trying to add a button that will pull data together in one place? any help appreciated....:)

  • @kerryclifford3080
    @kerryclifford30802 жыл бұрын

    Nice and simple, thanks. How does the code work without declaring Lastrow and i as datatypes?

  • @umeshshikalgar6759
    @umeshshikalgar67594 жыл бұрын

    Very Good

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    Thanks

  • @jjarias655
    @jjarias6552 жыл бұрын

    i got stuck in the Userform , it looks like its not available in MAC. I need this thing that you're doing so i can put in our inventory and work it seamlessly.

  • @georgekhaba6436
    @georgekhaba64362 жыл бұрын

    time table : @4:42 creating the form @10:41 the code to find data @16:34 to update data

  • @binibrahim590
    @binibrahim5902 жыл бұрын

    U r amazing my friend 😘😘😘

  • @ExcelDestination

    @ExcelDestination

    2 жыл бұрын

    Thanks 😊

  • @erwinvanlooy
    @erwinvanlooy3 жыл бұрын

    How do you make this work with tables?

  • @mariamxxxx
    @mariamxxxx Жыл бұрын

    I just followed your instructions, but it doesn't really work, when I press on "debud", i see that it highlights the lastrow=Worksheets("Sheet1")...line and it says "Lastrow=Empty", what am I doing wrong?

  • @bchotai4914

    @bchotai4914

    Ай бұрын

    I have same issue. Did you manage to resolve this?

  • @dilpreetsinghsethi8928
    @dilpreetsinghsethi8928 Жыл бұрын

    Hi How we have to change the code if we have different sheets and we want to update a field on same userform. For eg, if we have same product id for two different cities, which we can put as sheet name. Then we can change product name for specific city into their sheet by this userform.

  • @veefronda2747
    @veefronda27472 жыл бұрын

    What if in my table the product ID is not unique, can I still search and select the correct product name that i want to be displayed in the form? The product ID in my data can have two or more different product name.

  • @alby27able
    @alby27able3 жыл бұрын

    I had some matters with my USER FORM and thank to you I have solved it. THANK YOU! Please if you can post a video about how to insert FILTERS controlled by Combo box inside a USERFORM.

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    ok let me try to create tutorial as you mentioned

  • @v3x14g6
    @v3x14g63 жыл бұрын

    any way to make it so its not case sensitive I've tried Lcase ect but no luck

  • @fwmfwm
    @fwmfwm3 жыл бұрын

    This example is good to me. However, could you tell me how to add "Delete" record code on that example ? If possible, it would be great if you could send me the excel file . Thanks !

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    you can watch my another tutorial of userform to learn Search, Add, Delete record. Link is given below : kzread.info/dash/bejne/dGhkj9ifnrnHl8Y.html

  • @sameerpendharkar8600
    @sameerpendharkar86003 жыл бұрын

    How to search for the data in 19th column in excel. My sheet has a data stored from 19th column. I tried using your code but it is not searching . give me blank output.

  • @bikram903
    @bikram9033 жыл бұрын

    Thanks

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    Welcome

  • @limitone9564
    @limitone95642 жыл бұрын

    Can you add code if you type the product name and then search and all the other fields ...

  • @farranaziah17
    @farranaziah173 жыл бұрын

    it is really good to me but when i save it lost all of sudden why

  • @alexsanchez9737
    @alexsanchez97374 ай бұрын

    Is there a way to have a message box show up if you try to enter a product ID that is not already in your table? For example If I look for Product ID 2004 but does not exist in your table. I would like a message box to pop up.

  • @prbhat6469
    @prbhat646911 ай бұрын

    Sir Thank You So much. But I have One Problem. For Text Box 1 Code I think this is Search Button. I want For this button msg box if data ot found. can you help me please

  • @kendallperkins9843
    @kendallperkins98433 жыл бұрын

    I get an error on the update command. It says “compile error variable not defined”. The debug highlight the “lastrow =“

  • @EurysSantos

    @EurysSantos

    3 жыл бұрын

    it happens the same to me. I defined the variable as integer but it didn't work... it would be nice, if you could give us a hand with this bug

  • @alializadeh8195
    @alializadeh81952 жыл бұрын

    Thanx

  • @soethein9525
    @soethein9525 Жыл бұрын

    Can I know different between the "product_id = Trim(TextBox1.Text)" instead of "product_id = TextBox1.Text " without Trim fnction?

  • @bchotai4914
    @bchotai4914Ай бұрын

    Thank you - not sure why I am getting Complie error: Variable not defined error on Lastrow = Worksheets("Sheet1").Cells(Rows.Count, 1).End(xlUp).Row Private Sub CommandButton1_Click() Dim product_id As String product_id = Trim(TextBox1.Text) Lastrow = Worksheets("Sheet1").Cells(Rows.Count, 1).End(xlUp).Row For i = 2 To Lastrow If Worksheets(Sheet1).Cells(i, 1) = product_id Then TextBox2.Text = Worksheets(Sheet1).Cells(i, 2).Value TextBox3.Text = Worksheets(Sheet1).Cells(i, 3).Value TextBox4.Text = Worksheets(Sheet1).Cells(i, 4).Value End If Next End Sub

  • @sureshpanur561
    @sureshpanur561 Жыл бұрын

    Hi Bro.. Good but if product id not found , it has to show some message and also deleting options . should have been better. I know this is basic but these are all mandatory.

  • @neeldeshmukh5042
    @neeldeshmukh50423 жыл бұрын

    Then can we add New data inside the Excel sheet or we need to manually ad the data

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    You can check following userform tutorial for ADD, Delete, Display..... Link is : kzread.info/dash/bejne/dGhkj9ifnrnHl8Y.html

  • @Jerroldac1
    @Jerroldac13 жыл бұрын

    I have a Userform with 11 textboxes that I want to use to update the worksheet...I used your code however I can only get the second textbox to work...when I put data in the other textboxes when I click the update command button the data in the textboxes disappear...what do you think I'm doing wrong?

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    without looking at code, I can not say anything. However, I am hoping that there would be some correction required in naming of text boxes..

  • @kimnguyen-gr9ge
    @kimnguyen-gr9ge Жыл бұрын

    Hi can you add a code if product I’d not found in the search

  • @abduljamaal513
    @abduljamaal513 Жыл бұрын

    What If I need to build sheet2 by a form using sheet1 datas....

  • @giefanytubo3951
    @giefanytubo39513 жыл бұрын

    Hi can you help me to create template for data search in multiple worksheets

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    You can take help from following tutorial for searching value on multiple worksheets. kzread.info/dash/bejne/fK2g1ZSThKzXhdI.html

  • @dbags317
    @dbags3174 жыл бұрын

    My search button works fine if i entered the data that is inthe first row, but none after that. If it makes a difference, the criteria im searching is in date format

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    you can declare variable as variant for date.

  • @dbags317

    @dbags317

    4 жыл бұрын

    Excel Destination awesome. It worked!

  • @kingkind2002
    @kingkind20024 жыл бұрын

    how can solve it the duplicate item for example : i have 2 same items with different date & i want do update for 2nd date

  • @kingkind2002

    @kingkind2002

    4 жыл бұрын

    Any update

  • @bluejay12293
    @bluejay122932 жыл бұрын

    genius

  • @ExcelDestination

    @ExcelDestination

    2 жыл бұрын

    Thanks

  • @AayKay2023
    @AayKay20233 жыл бұрын

    Hello Boss, yesterday I prepared a excel sheet according to the video, but today when I opened this macro-enabled excel list, It is not showing the VBA coding/design in this. Kindly reply how it will showing.....

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    You need to save your excel file in "Macro Enabled" format. So that you can always view\use your developed Code.

  • @fairosabdulmutalip641
    @fairosabdulmutalip6414 жыл бұрын

    How to highlight the updated cells with different colors.

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    use code for color

  • @DeepuMathewgoldeneye
    @DeepuMathewgoldeneye2 ай бұрын

    If the product I'd meets more than one row in worksheet how will you update. If we only want to update few rows that meets the if statement how will we go to next row which is having the same product Id

  • @hengyi6053
    @hengyi60534 жыл бұрын

    hey bro can you explain why is there error for the last row for mine

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    pls share your code at exceldestination@gmail.com

  • @igoravsharma
    @igoravsharma3 жыл бұрын

    HELLO SIR I HAVE A QUERY ABOUT SERCH AND DISPLAY OPTION MY QUSESTION IS THIS I CAN SERCH ONLY BY PRODUCT ID ?? I CAN'T SERCH BY PRODUCT NAME ? QUANTITY ? CITY ?? PLZ REPLY

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    Pls check another tutorial for user form to search and display. Link in given below : kzread.info/dash/bejne/dGhkj9ifnrnHl8Y.html

  • @jesusmyhope554
    @jesusmyhope5544 жыл бұрын

    Dear daood sir, I have make user form with add, search, next and previous button. I also create Update button but whenever i click update button it changes whole entries to same data whatever i updated it shows in all rows in all entries. I am stuck with this. kinldly help . Can you share your mail so i can share my excel to you

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    exceldestination@gmail.com

  • @chamnanprum4068
    @chamnanprum40683 жыл бұрын

    how to show 2 rows dear?

  • @safesanju
    @safesanju4 жыл бұрын

    I have 5 row first Colum have same 5 name “sanjay, second column have same 5, date 27-07-2020 and third column have 5 value ,100,200,300,400,500 …I want to merge duplicate name and sume of 5 value in and merge same date….i want whole data in one row….please help me …excel VBA code for it.

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    for any excel vba support, write to exceldestination@gmail.com

  • @misipatimulipola5700
    @misipatimulipola57003 жыл бұрын

    thank you, exactly what I was looking for. can you add a code on how to clear the form to search for a new record please?

  • @v3x14g6

    @v3x14g6

    3 жыл бұрын

    This is what i have in my form you may have to change things around but should work Private Sub Reset_Click() Dim txt For Each txt In Frame2.Controls 'Change to the frame name you used If TypeOf txt Is MSForms.TextBox Then txt.Text = "" End If Next txt txtsearch.Text = "" ' clears text fields by names if not in frame add more if needed GradedYes = False ' all of these false statements are for Toggle /check boxes GradedNo = False ListedYes = False ListedNo = False ebaytoggle = False amazontoggle = False End Sub

  • @abdulkadri4070
    @abdulkadri40704 жыл бұрын

    it is showing error in lastrow = Worksheets("Sheet1").Cells(Rows.Count, 1).End(xlUp).Row

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    check sheet name

  • @abdulkadri4070

    @abdulkadri4070

    4 жыл бұрын

    @@ExcelDestination Worked many thanks for Helping!!

  • @fatefury

    @fatefury

    4 жыл бұрын

    i check my sheet name, correct one, but it still showing the error

  • @fatefury

    @fatefury

    4 жыл бұрын

    Private Sub searchBTN_Click() Dim wks As Worksheet Set wks = Sheet1 Dim product_id As String product_id = Trim(TextBox1.Text) lastrow = wks.Cells(Rows.Count, 1).End(xlUp).Row For i = 2 To lastrow If wks.Cells(i, 1).Value = product_id Then TextBox2.Text = wks.Cells(i, 2).Value TextBox3.Text = wks.Cells(i, 3) TextBox4.Text = wks.Cells(i, 4) TextBox5.Text = wks.Cells(i, 5) TextBox6.Text = wks.Cells(i, 6) TextBox7.Text = wks.Cells(i, 7) End If Next End Sub

  • @dinkarshinde3728
    @dinkarshinde37289 ай бұрын

    Very Nice, Thanks for the Same. Please give me code for Multiple criteria Search through UserForm

  • @pltsm3970
    @pltsm39703 жыл бұрын

    Lastrow = Worksheets("Sheet1").Cells(Rwo.Count, 1).End(xlUp).Rwo Here gives me error the Lastrow value Lastrow = 0

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    you have written incorrect spelling of row........ code should be : Lastrow=Worksheets("Sheet1").Cells(Rows.Count, 1).End(xlUP).row

  • @lanki2610
    @lanki26102 жыл бұрын

    Hello, for me, i get a mistake, because "i" is not defined... did you do that somewhere else?

  • @umsophorn5654

    @umsophorn5654

    Жыл бұрын

    I met the same problem as yours.

  • @basheerpt4089
    @basheerpt40894 жыл бұрын

    Usfull video... How can deduct QTY From stock.

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    for any excel vba task, you can reach out to me at exceldestination@gmail.com

  • @SanjayMahato76435
    @SanjayMahato764352 жыл бұрын

    Display list of items like sales of same products in a day month

  • @everythingandanything4102
    @everythingandanything4102 Жыл бұрын

    Does not like it if Option Explicit is on

  • @neilsonsalazar6882
    @neilsonsalazar6882 Жыл бұрын

    mine is not running can you help me

  • @Philip-dy3ww
    @Philip-dy3ww3 жыл бұрын

    What if product id is not unique?

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    then you can use any other column, with unique values. or you can make customized column by adding id and one more column.

  • @Philip-dy3ww

    @Philip-dy3ww

    3 жыл бұрын

    Excel Destination thank you for your reply!

  • @nsnahsbs6510
    @nsnahsbs6510 Жыл бұрын

    i got run time error '438'

  • @dannycreations9581
    @dannycreations95816 ай бұрын

    can you put the vba code

  • @global7280
    @global72804 жыл бұрын

    How to add a new record sir?

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    you can watch another tutorial to learn add and delete data through UserForm. Link is : kzread.info/dash/bejne/dGhkj9ifnrnHl8Y.html

  • @iqbalchowdhury7130

    @iqbalchowdhury7130

    4 жыл бұрын

    Thanks much. I tried many tutorials but yours is the easiest. Keep up the good work.

  • @santupramanik7078
    @santupramanik70786 ай бұрын

    Link please