I’m trying to create a program that reads and analyzes an excel file(.xlsx), creates a summary table, then saves that table into a new .xlsx file.
I’d like to have an input prompt ask me - “Filename?” I’m analyzing several sets of data and I’d like the summary table to be saved with a new filename each time.
I’ve tried setting a variable equal to my input, then saving the output as that variable. However, it won’t save as a .xlsx, only a .txt. Any help is greatly appreciated!
This code above is for reading and printing in the console. I copied this code from one of my projects. If you need more help and guidance, ask here.