MarkGorecki
Technical User
Hello,
My code currently allows me to select cells with wich to create a chart. (shown below)
Dim varRange As Variant, RangeSel As Range, Month As Variant
On Error Resume Next
Set varRange = _
Application.InputBox("Select a range of cells:", Type:=8)
If IsObject(varRange) = False Then Exit Sub
MsgBox varRange.Range
I would like to get the value of the first cel in the selected range. I have this:
Month = Range("varRange")(1, 1)
But it does not seem to work. I would like to replace the line:
Selection.Characters.Text = "Month Error Percentage"
with the actual month extraced from the first cell.
Thanks in advance.
My code currently allows me to select cells with wich to create a chart. (shown below)
Dim varRange As Variant, RangeSel As Range, Month As Variant
On Error Resume Next
Set varRange = _
Application.InputBox("Select a range of cells:", Type:=8)
If IsObject(varRange) = False Then Exit Sub
MsgBox varRange.Range
I would like to get the value of the first cel in the selected range. I have this:
Month = Range("varRange")(1, 1)
But it does not seem to work. I would like to replace the line:
Selection.Characters.Text = "Month Error Percentage"
with the actual month extraced from the first cell.
Thanks in advance.