R
Ray Chang via AdminLife
I am currently trying to write a VBA program that prompts theuser to search for a text file. The text file is then opened ina new workbook, has its data arranged into specific columns, andthen saves it as a new xls file. Then, the program is supposedto read data from several of the columns, and create a chartbased on the data.
Here is the problem. It opens the file, arranges it intocolumns, saves it as a new workbook, highlights the columns Ineed to use to make the chart, but then creates a blank chart inthe old workbook (the one with the macro in it) and then crashessaying that the data is out of range. How do I make it insteadmake a new chart in the new workbook, and use the data from thenew workbook to make it into a graph (the actual creating of agraph works seperate from the rest of the program).
Here is the problem. It opens the file, arranges it intocolumns, saves it as a new workbook, highlights the columns Ineed to use to make the chart, but then creates a blank chart inthe old workbook (the one with the macro in it) and then crashessaying that the data is out of range. How do I make it insteadmake a new chart in the new workbook, and use the data from thenew workbook to make it into a graph (the actual creating of agraph works seperate from the rest of the program).