Hello,
My name is Kenny, I came across this forum while googling fro answers. I have tried numerous google hits but can't figure out what I've done wrong.
I have some background of coding while I was at school, but my line of work is now in an other subject then programming. So with the basis I have and google I have tried to create a worksheet for asset management.
Maybe first of all a little sketch of what I like to do. At work we have a lot of material and users are constantly borrowing these things. As the previous system got cluttered and was getting inefficient we thought of a new excel file. We like to work with a hand scanner and barcodes to fill in mutation lines. Also we will use this scanner to enter all new material in to the excel. So first steps would be this:
- An administrator scans some of the data to enter the new material (worksheet NEW)
- When all data is filled in, it will be transferred to a new worksheet called OVERVIEW
- When somebody wants to borrow something he just takes his material and scans all needed barcodes (user, object, location,...)
- The last cell will be filled in automatically with the date.
- When the last cell is entered the data will be automatically updated on the worksheet called OVERVIEW
- After this is done, the active cell is set to the first cell on the next row for a next mutation
Now that coding is completed and I started testing I received an error: "Run-time error '91': Object variable or With block variable not set". The line with code "barcodecell = rngX.Address" is highlighted.
I figured out while searching the internet that it has something to do with the find and an object I want to set. But I can't figure out what I have done wrong in the Find code. Can someone have look?
If you have the time and could spare the effort, could you also go through the rest of the code to check this? It would be much appreciated. Because I guess I have made other errors as well, because I'm still a newby to this.
Kind regards and thanx in advance!
Beheer_frm.xlsm
Bookmarks