Excel 2007 – creating a graph from CSV data with a macro

355 pts.
Tags:
CSV
Excel 2007
Excel 2007 macros
Windows XP
I want to create a macro that will take a CSV file and remove the same columns each time. BUT the number of rows can vary. 

Can I create a macro that will create a grapgh ?

The problem is, like i said before, the number of rows can vary each time but the number of columns is consistant.



Software/Hardware used:
Windows XP
ASKED: January 17, 2011  4:31 PM
UPDATED: January 26, 2011  4:03 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

I would record a macro of yourself doing what you said by the mouse and then view that macro.

I have this from someone that finds the last row for my sheet since it varies all the time too:

Sub findLastRowA()
Dim lastRow As Long
lastRow = Range(“A” & Rows.Count).End(xlUp).Row
End Sub

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • jkeri
    Jaymz69..... What you are saying is that I can go in and modify the source code of the marco?
    355 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following