I have an excel file that I am trying to write a MB script so I can open it and not have to define the three columns each time. This script is pasted into the MB code window and not run in an MBX.
The file is called zips.xlsx.
Column 1 is Zipcode which needs to be set to character 5.
Column 2 is Date which needs to be set to date, not date/time
Column 3 is Sales which needs to be set to float.
I can get the file to open in MapInfo, but it always prompts for column types.
I’ve looked around and cannot find anything clean on how to do this.
Thank you.
Matthew