+ Reply to Thread
Results 1 to 4 of 4

Problem converting from "A1" to R1C1

  1. #1
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    502

    Problem converting from "A1" to R1C1

    The below top code is part of a sort Sub I obtained with the macro recorder. I want to convert the "A1" to R1C" & z &" because I want to keep the column as a variable (see bottom code). Problem is there is an error in the code. I don't know what it is. Can somebody tell me?

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by dschmitt; 04-07-2010 at 12:30 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Problem converting from "A1" to R1C1

    how about
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    502

    Re: Problem converting from "A1" to R1C1

    I have already tried. I get the following error message:

    Run-time error '1004'
    Method 'Range' of object '_Global' failed

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Problem converting from "A1" to R1C1

    try like this, without Range

    Please Login or Register  to view this content.
    It runs without error in XL 2010

+ 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