SomethingMore
New Member
- Joined
- Sep 16, 2008
- Messages
- 2
So here's the situation...
I have an Excel 2007 .xlsm file that only contains Sheet1.
I have two options, but the outcome has to be the same...
Options
Option 1: Have a "Load CSV" button on Sheet1. When clicked, the user needs to find a .csv file and Open it.
Option 2: Press Alt+F8 to run Macro. The user needs to find a .csv file and Open it.
Desired Outcome
Copy entire contents of .csv file to Sheet2 of the .xlsm file that is running the code.
Undesired Outcome
I don't want the .csv to be loaded to a new Workbook or any other existing Workbook. I have found the code for this, but this is not functional to me.
I don't want Sheet2 to be renamed in any way. It should always be called Sheet2. This is because Sheet1 will have some conditional formatting based on the data in Sheet2.
Help!
I have an Excel 2007 .xlsm file that only contains Sheet1.
I have two options, but the outcome has to be the same...
Options
Option 1: Have a "Load CSV" button on Sheet1. When clicked, the user needs to find a .csv file and Open it.
Option 2: Press Alt+F8 to run Macro. The user needs to find a .csv file and Open it.
Desired Outcome
Copy entire contents of .csv file to Sheet2 of the .xlsm file that is running the code.
Undesired Outcome
I don't want the .csv to be loaded to a new Workbook or any other existing Workbook. I have found the code for this, but this is not functional to me.
I don't want Sheet2 to be renamed in any way. It should always be called Sheet2. This is because Sheet1 will have some conditional formatting based on the data in Sheet2.
Help!