Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dynamic input for Chart gives error9 but seems to do his job to...

I am currently also making such a macro. I place a cel with a number of
datalines that hold X-values.

I made a macro and am trying to changing the range of the X-axis.

I can't seem to use a variable in the command.

This is the commmand:

ActiveChart.SetSourceData Source:=Sheets("1").Range("A2:B" & bereik + 2),
PlotBy:= _

xlColumns

** ActiveChart.SeriesCollection(1).XValues = _

Worksheets("Blad1").Range("A3:A" & bereik + 2)

ActiveChart.SeriesCollection(1).Values = _

Worksheets("Blad1").Range("B3:B" & bereik + 2)

It creates an error 9 at **. But i do get a graph containing the wright
values.

so it seems to work and fail at the same time.

Do you have an idea of what my problem could be?

THX


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
Dynamic Sum Array Formula Input Help excelCPA Excel Discussion (Misc queries) 3 September 25th 09 06:40 PM
Dynamic report based on user input C02C04 Excel Discussion (Misc queries) 7 November 26th 08 03:45 PM
Dynamic chart pasted to a new workbook in report can't be dynamic Piotr (Peter)[_2_] Charts and Charting in Excel 2 August 6th 08 05:15 AM
macro with dynamic input Ahmaq Excel Worksheet Functions 2 April 24th 07 01:06 PM
ADDRESS function - dynamic input cell claytorm Excel Discussion (Misc queries) 1 June 28th 05 02:05 PM


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

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

About Us

"It's about Microsoft Excel"