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

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
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,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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