Hi there,
I would like to search (to check) if in a different workbook.worksheet there are columns with header title:
the user creates a worksheet with 10 columns, I have to retrieve some data from it, but they usually forget to create the columns which are mandatory for my retrieval.
The code looks for those columns title(see the list) and when matched retrieves the data.
I know how to look into the sheet to match if are present but I'd like to keep in a variant the missing ones and show in a msgbox to the user, so they know that the file can't be retrieved if one ore more columns are not present.
columns needed are:
Amount
Outlet Name
Document Date
Document number
Company
I can of course send a msgbox to the user every column missed, but I need to have a list of missing in the same msgbox
Thanks for your help
Raf
I would like to search (to check) if in a different workbook.worksheet there are columns with header title:
the user creates a worksheet with 10 columns, I have to retrieve some data from it, but they usually forget to create the columns which are mandatory for my retrieval.
The code looks for those columns title(see the list) and when matched retrieves the data.
I know how to look into the sheet to match if are present but I'd like to keep in a variant the missing ones and show in a msgbox to the user, so they know that the file can't be retrieved if one ore more columns are not present.
columns needed are:
Amount
Outlet Name
Document Date
Document number
Company
I can of course send a msgbox to the user every column missed, but I need to have a list of missing in the same msgbox
Thanks for your help
Raf