Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 90219

Formulas within Named Range changes when opened in foreign language version of Excel

$
0
0

When opened in an English language version of Excel, the following definition for a named range works just fine:

=OFFSET('Summary Data'!$B$9,0,0,TotalStops+1,SummaryDataColumns)

However, when the same worksheet (created using an English language version of Excel) is open using a Portuguese language version of Excel the formula in the named range is changed to:

=DESLOC('Summary Data'!$B$9;0;0;TotalStops+1;SummaryDataColumns)

To my understanding "DESLOC" is the correct translation for OFFSET, but all of commas in the formula have been replaced with semi-colons. Now anytime that the named range is referred to in vba code, the code execution fails at that point.

Just for reference, the call that references the named range is of the form:

thisworkbook.Names("dbSummaryData").RefersToRange

Viewing all articles
Browse latest Browse all 90219

Trending Articles