Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problem with using addreslocal

Dear all


I have the following code to set the name and x and y properties of a chart series. These need to refer to a certain worksheet (T1, T2, etc identified by the parameter Tsel) and to a certain range on these sheet.


..SeriesCollection(nl).Name = "='T" & TSel & "'!" & Cells(38, j).AddressLocal(ReferenceStyle:=xlR1C1)
..SeriesCollection(nl).XValues = "='T" & TSel & "'!" & Range(Cells(40, 1), Cells(40 + nr - 1, 1)).AddressLocal(ReferenceStyle:=xlR1C1)


I have used the AddressLocal property to create references in the local language. When I run the code above on an English version, the code runs fine. On a German Excel version the code fails on the second line (object failure). If I evaluate the string which is created at the righ side of the equation it seems to me OK (like ='T2'!Z40S1:Z100S1). The curious thing is that the first line works OK, so it seems there is no problem with the reference to the worksheet itself. The problem must be somewhere in the definition of the range which spans multiple rows.

Any suggestion is appreciated

Martien
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
Excel startup problem. Possible problem with stdole32.tlb Walter Briscoe Excel Programming 2 September 26th 11 07:09 PM
Colon at the end of excel file name(ex: problem.xls:1, problem.xls financeguy New Users to Excel 2 January 15th 10 01:15 AM
Started out as an Access problem. Now an Excel problem RobertM Excel Discussion (Misc queries) 2 April 26th 06 07:30 PM
Problem when multipple users access shared xl-file at the same time, macrocode for solve this problem? OCI Excel Programming 0 May 16th 04 10:40 PM


All times are GMT +1. The time now is 02:17 AM.

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"