+ Reply to Thread
Results 1 to 3 of 3

Converting workbook references to R1C1 style to insert into VBA code

  1. #1
    Registered User
    Join Date
    08-12-2009
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    12

    Converting workbook references to R1C1 style to insert into VBA code

    I am trying to convert the following workbook reference/formula into an R1C1 reference to put into a macro.

    Note: the active/selected cell in this case is C15.

    =IF(D15=$D$4, $C$4, "")

    The code I have is this:

    Please Login or Register  to view this content.
    Thanks in advance,
    Rick

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Converting workbook references to R1C1 style to insert into VBA code

    Perhaps

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Post Re: Converting workbook references to R1C1 style to insert into VBA code

    Quote Originally Posted by RickCornelisse View Post
    I am trying to convert the following workbook reference/formula into an R1C1 reference to put into a macro.

    Note: the active/selected cell in this case is C15.

    =IF(D15=$D$4, $C$4, "")

    The code I have is this:

    Please Login or Register  to view this content.
    Thanks in advance,
    Rick
    Why are you trying to convert it?
    Although there are valid reasons to do so, I wanted to make sure that you are aware you can enter formulae in either format in most instances:

    =IF(D15=$D$4, $C$4, "")
    with activecell being C15

    To enter it in R1C1 format:
    Please Login or Register  to view this content.
    To enter it in A1 format:
    Please Login or Register  to view this content.
    Hope that helps
    If you find the response helpful please click the scales in the blue bar above and rate it
    If you don't like the response, don't bother with the scales, they are not for you

+ 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