Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default 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"

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default 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"

  #3   Report Post  
Posted to microsoft.public.excel.programming
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"

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Variable calculation question EG Excel Worksheet Functions 1 October 19th 09 12:00 AM
Variable name question JTWarthogs Excel Discussion (Misc queries) 3 May 7th 09 02:22 PM
variable question peyman Excel Discussion (Misc queries) 3 October 16th 07 12:33 AM
Macro Question - Variable Dayton Excel Programming 2 May 10th 04 06:04 PM
Simple Variable Question Michael Kintner Excel Programming 1 November 24th 03 06:06 PM


All times are GMT +1. The time now is 10:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"