+ Reply to Thread
Results 1 to 3 of 3

How do I convert a formula in a cell from "$A$3" to "A3"

  1. #1
    Forum Contributor PingPing's Avatar
    Join Date
    02-19-2010
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    158

    How do I convert a formula in a cell from "$A$3" to "A3"

    When I run the following code:
    Please Login or Register  to view this content.
    column C in the active worksheet contains the formulas "=$D$21", "=$D$22", "=$D$23", etc.
    However, I want them to contain the formulas "=D21", "=D22", "=D23", etc.

    How do I do this in the above VBA code? ie. How do I get rid of the annoying '$'s using VBA?

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264

    Re: How do I convert a formula in a cell from "$A$3" to "A3"

    You could just use:

    Please Login or Register  to view this content.
    which will apply the lot in one go.

    Richard
    Richard Schollar
    Microsoft MVP - Excel

  3. #3
    Forum Contributor PingPing's Avatar
    Join Date
    02-19-2010
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    158

    Re: How do I convert a formula in a cell from "$A$3" to "A3"

    Thank you. That's exactly what I needed.

+ 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