Columns Letters to Number keep changing

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,233
Office Version
  1. 2007
Platform
  1. Windows
Hi,

Sometimes after i press a command button i see a RTE
Clicking debug shows me the line of code that is the cause.

What ive noticed is the code shows example Range("P7").Select in yellow.
The issue is because for some unknown reason the columns are now shown as 1,2,3 etc as opposed to A,B,C

Changing the R1C1 option in the settings does fix this BUT why does it keep changing from numbers to letters on its own every now & then ?

Thanks
 
FYI, the fact that your Excel GUI is showing column numbers would not prevent a reference like Range("P7") from working.

This was shown in yellow.
I looked at the page to see 1,2,3,4 etc as opposed A,B,C,D,E

I changed from 1,2,3 to A,B,C & run the code.
It worked fine.

Changed it back to 1,2,3 & RTE shown with this same line in yellow
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I suspect it was more to do with which sheet you activated when switching back and forth.
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,319
Members
449,218
Latest member
Excel Master

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