ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   variable Question (https://www.excelbanter.com/excel-programming/303244-variable-question.html)

Nigel

variable Question
 
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"


Shane

variable Question
 
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"


Shane

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"



All times are GMT +1. The time now is 12:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com