+ Reply to Thread
Results 1 to 7 of 7

Converting Cell Formula to Text

  1. #1
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Converting Cell Formula to Text

    Greetings,
    I would like to convert the cell formula into a value without using copy/paste. My code is using the copy/special paste method.
    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Converting Cell Formula to Text

    Try

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Re: Converting Cell Formula to Text

    TMS,
    WOW it was soooooo simple. Thank you MUCH for pointing me in the right direction!! I changed your code a bit.
    Please Login or Register  to view this content.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Converting Cell Formula to Text

    You're welcome. Thanks for the rep.

    You don't need your amendment. It will work as described ... .Value = .Value

    The dot links the Value property to the range specified in the With statement in both cases

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Converting Cell Formula to Text

    You could however say

    Please Login or Register  to view this content.
    And then you don't need to use the With ... End With construct

  6. #6
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Re: Converting Cell Formula to Text

    TMS,
    Yep, that worked as well!
    Thank you VERY much for this bit of info. I will NEVER use copy/paste again!!!!

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Converting Cell Formula to Text

    Again, you're welcome.

    The With ... End With construct is used for brevity and efficiency.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Converting a formula to text (not the result to text)
    By aquixano in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2016, 02:06 PM
  2. Converting text strings to formula in vba
    By Jayhrbrt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-24-2013, 10:21 AM
  3. Converting a text string to a formula
    By Mandy208 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-04-2013, 05:33 AM
  4. Converting the text result of a formula to fixed text?
    By KarenInStockholm in forum Excel General
    Replies: 3
    Last Post: 12-08-2011, 08:42 AM
  5. Converting formula to text
    By dauckland in forum Excel General
    Replies: 3
    Last Post: 03-07-2011, 07:43 PM
  6. Converting formula resultants to text.
    By elliot_m in forum Excel General
    Replies: 2
    Last Post: 01-12-2007, 12:38 PM
  7. Converting text into a formula?
    By Deladier in forum Excel General
    Replies: 0
    Last Post: 04-27-2005, 10:35 AM

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