I renamed the file and saved it, the code runs as expected as the file name is not hardcoded in it. There are 2 options that are checked before running the code to avoid errors:
1)
makes sure the sheet the code would run has ""Product Description" in B1 cell
2)
checks for word "Total" existing on th sheet.
If you feel it's not required, you can comment them out by putting ' sign at the start of the row. But when you run the code on a sheet with different data layout (different header, table of data located say from Y2 cell) it would result in error.
Bookmarks