View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Shane Shane is offline
external usenet poster
 
Posts: 18
Default variable Question

thank you!!!!
"Nigel" wrote in message ...
One way........

Dim ix as integer
ix = 27
ActiveChart.SeriesCollection(1).Values = "='Target Data'!R6C4:R" & ix & "C4"


Cheers
Nigel
"Shane" wrote in message ...
Hi All,

How can i get R"26" to be a variable in the code below

ActiveChart.SeriesCollection(1).Values = "='Target Data'!R6C4:R26C4"

so that the answer becomes

x = 27

ActiveChart.SeriesCollection(1).Values = "='Target Data'!R6C4:R27C4"