sorry, it's clear mistake on my part - I just copied your full path and forgot to remove the file name
import os src_path = r'C:\Users\Ron McMillan\Desktop' src_file = os.path.join(src_path, 'demo1.xlsx') dest_file = os.path.join(src_path, f'{new_invoice_number}.xlsx') print(src_file) print(dest_file)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs