search data on sheet two from a userform in sheet 1

  • I've have this code and I've been trying to enable the user to only use the userform and not look into the others sheets with data, but the code I'm using only allows me to run it when the I'm on the data sheet. Same thing goes for my next and previous. can some one help me and explain what am I doing wrong?



    and this is the code for my next button with the same issue


  • Re: search data on sheet two from a userform in sheet 1


    You are limiting it to the "Daily Ship Data" sheet with this line.

    Code
    Set WS = Worksheets("Daily Ship Data")


    What do you want to do?

    Bruce :cool:

  • Re: search data on sheet two from a userform in sheet 1


    it's still coming up as a error. I want user the user form to be on sheet1 and search for data that's on sheet2 that contains the raw data

  • Re: search data on sheet two from a userform in sheet 1


    Quote

    it's still coming up as a error.


    I don't know what it is.
    You didn't specify the error and you didn't specify which line it is on.
    Your explanation of what you want is very generic.
    You should upload your workbook and provide specific details of what you want based on the workbook, sheet names, specific cell addresses etc.

    Bruce :cool:

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!