+ Reply to Thread
Results 1 to 5 of 5

Macro to convert excel to R1C1

Hybrid View

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    54

    Macro to convert excel to R1C1

    Hi

    Thanks in advance, i need help in a macro where

    1. When excel opens , the format changes to R1C1 automatically.
    2. when that very excel is closed, its gets back changed to A1 fromat.

    Please help.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Macro to convert excel to R1C1

    Add this code in Thisworkbook Code window of the desired workbook

    Private Sub Workbook_BeforeClose(Cancel As Boolean)
        Application.ReferenceStyle = xlA1
    End Sub
    
    Private Sub Workbook_Open()
        Application.ReferenceStyle = xlR1C1
    End Sub
    The reference style is application property so the change will affect all open excel workbooks.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    10-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Macro to convert excel to R1C1

    its not working...

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Macro to convert excel to R1C1

    the code has to be in the ThisWorkbook module not a normal module
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Registered User
    Join Date
    10-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Macro to convert excel to R1C1

    thanks Joseph and Sixthsense

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1