Hi all,
Using excel 2007 on vista
Does selection change sub only work if you manually change a cell?
I want to have a dynamic chart from input via API that updates a cell on my worksheet.
This is not happening.
The cell on my work sheet is changing ok via the api ~ cell F8 on worksheet 2
My worksheet sub in Worksheet1 is ~
It actually works if I click on any cell manually and press enter.
Have I written the code wrong?
It pops up a box telling me "A formula in this worksheet contains one or more invalid references"
My named range formula for the table that generates the graph is ~
=OFFSET(Sheet1!$M$2,,,COUNT(Sheet1!$M$2:$M$500))
Cheers Skinman
Using excel 2007 on vista
Does selection change sub only work if you manually change a cell?
I want to have a dynamic chart from input via API that updates a cell on my worksheet.
This is not happening.
The cell on my work sheet is changing ok via the api ~ cell F8 on worksheet 2
My worksheet sub in Worksheet1 is ~
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Sheets("Sheet2").Range("F8") <> Sheets("Sheet1").Range("M5000").End(xlUp).Offset(0, 0) Then
Sheets("Sheet1").Range("M5000").End(xlUp).Offset(1, 0) = Sheets("Sheet2").Range("F8")
End If
End Sub
It actually works if I click on any cell manually and press enter.
Have I written the code wrong?
It pops up a box telling me "A formula in this worksheet contains one or more invalid references"
My named range formula for the table that generates the graph is ~
=OFFSET(Sheet1!$M$2,,,COUNT(Sheet1!$M$2:$M$500))
Cheers Skinman