B
Bryan Dickerson
I have a VBA macro behind a spreadsheet that I wish to stay with the
spreadsheet. The user wants to be able to refresh the data, which comes
from a data query, save the report and email it. So I'm writing up
instructions on how to save the spreadsheet as a CSV file and email it.
Very simple. So I try it to make sure I've spelled it out as completely as
possible. Works. I close the CSV and get back into spreadsheet where the
VBA macro is (I put the macro in the "ThisWorkbook" module/class) and try to
run it and Excel says it can't find the macro! It's looking for it in
<csvfilename>!ThisWorkbook. So I have a question:
1. How do I get the macro to "stay" with the spreadsheet and not "travel" to
the CSV Filename? If it confuses me the programmer, imagine what kind of
mind games it would play with the user!!
I thought you couldn't save macros with CSV files?! What gives?
TIA!
spreadsheet. The user wants to be able to refresh the data, which comes
from a data query, save the report and email it. So I'm writing up
instructions on how to save the spreadsheet as a CSV file and email it.
Very simple. So I try it to make sure I've spelled it out as completely as
possible. Works. I close the CSV and get back into spreadsheet where the
VBA macro is (I put the macro in the "ThisWorkbook" module/class) and try to
run it and Excel says it can't find the macro! It's looking for it in
<csvfilename>!ThisWorkbook. So I have a question:
1. How do I get the macro to "stay" with the spreadsheet and not "travel" to
the CSV Filename? If it confuses me the programmer, imagine what kind of
mind games it would play with the user!!
I thought you couldn't save macros with CSV files?! What gives?
TIA!