R1C1 notation in non-English versions of Excel

ou81aswell

Board Regular
Joined
Oct 6, 2009
Messages
50
The following code generates an error when run with the Portuguese (pr-BR culture) version of Excel 2007.

ExcelApp.Goto "R1C1"

The error generated and captured in my app's log file is something like:

"Esta referancia nao a valida"

Is the R (row) and C (column) supposed to be specified differently in different languages?

If so, is there a way to query Excel to ask it what it uses to specify the row and column components of a cell reference?

Thanks!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Got it.

The following .NET expression produces "R1C2" in English or whatever's appropriate if Excel is running in a different language.

ExcelApp.International(Excel.XlApplicationInternational.xlUpperCaseRowLetter) & "1" & _
ExcelApp.International(Excel.XlApplicationInternational.xlUpperCaseColumnLetter) & "2"
 
Upvote 0
Hi,

This worked perfect for me (Excel 2010 pt-Brazilian version)

Application.Goto "R1C1"

M.
 
Upvote 0
That may be because you're using VBA. I believe VBA does everything in en-US behind the scenes. .NET is finicky about the culture.
 
Upvote 0
Why not use an actual Range object?
 
Upvote 0
Looks like you already are having to change it... ;)
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,242
Members
452,898
Latest member
Capolavoro009

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top