Hi all,
I have to implement a requirement on a small project. I have searched online and even attempted to record a macro, but the samples I found were created for slightly different purposes.
Without beating around the bush, let me briefly describe what users do and what the vba script is expected to do:
I have to implement a requirement on a small project. I have searched online and even attempted to record a macro, but the samples I found were created for slightly different purposes.
Without beating around the bush, let me briefly describe what users do and what the vba script is expected to do:
- Users download an excel template. The template has 3 worksheets. Users add information on the 3rd worksheet named 'Product Data'. There are no tables
- The completed excel template is saved in the C:/Download directory (the file can be named whatever by the user and they have been instructed that the directory should only have one excel file at a time. The extension ends in .xlsx)
- From a button in an access database, I want a vba script to determine the presence of an excel file and then convert the 3rd worksheet ('Product Data') of the excel template into a text file (tab delimited) and the name should be 'vendor.txt'.
- The text file should be created in the same C:/Download directory and if there is currently a text file with the same name, I want it overwritten.