maththetraveller
Technical User
Hi! I created a macro that closes customers accounts. At first, the user needs to choose the reason for closing the account, then the macro performs the action and leaves a detailed note in the account. At the end, the macro sends the reason in a .txt file. I tried to send it to Excel, but my problem is that each word is being sent to a different cell. In the example, the reason would be "Prefers to use bank card / Other Card". In Excel, the date is in one cell, the time in another one, "am" "pm" in a third one, "Prefers" in a fourth one, "to" in a fifth one, "use" in a sixth one etc...
What I want is to have the date in one cell, the time in a second cell and the full reason in a third cell.
This part of the code is like this:
Reason = "Prefers to use bank card / Other card"
Open "C:\tempdata\Tracking.xls" For Append As #1
Print #1, Date, Time, Reason
Close
Thanks for your help!
What I want is to have the date in one cell, the time in a second cell and the full reason in a third cell.
This part of the code is like this:
Reason = "Prefers to use bank card / Other card"
Open "C:\tempdata\Tracking.xls" For Append As #1
Print #1, Date, Time, Reason
Close
Thanks for your help!