I started creating a macro that asks the user to enter the number of rows into a message box. The message box needs to take that value and make the last row of the graph that value.
Dim myColm As Range
Set myColm = Application.InputBox("How many rows are there?", Type:=8)
On Error Resume Next
Selection.Formula = "=SERIES('Chart'!R9C34,,'Chart'!R10C34:R(mycolm)C34,6)"
I realize that mycolm is not supposed to be there but that is essentially what I would like the macro to have the value inserted. If anyone can offer me any advice or guidance, I would greatly appreciate it.
Jedit
Dim myColm As Range
Set myColm = Application.InputBox("How many rows are there?", Type:=8)
On Error Resume Next
Selection.Formula = "=SERIES('Chart'!R9C34,,'Chart'!R10C34:R(mycolm)C34,6)"
I realize that mycolm is not supposed to be there but that is essentially what I would like the macro to have the value inserted. If anyone can offer me any advice or guidance, I would greatly appreciate it.
Jedit