+ Reply to Thread
Results 1 to 3 of 3

pasting formulas as values with multiple selections

  1. #1
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    pasting formulas as values with multiple selections

    Hi all,

    I am pasting several formulas in a named range with multiple areas. How can I keep the values only once they have calculated? I don't want to use the copy/paste method as it is slower and I would need to do each area of the range separately. I have tried using below ".Value = .Value" method, unfortunately it returns "#NA" for some cells even though the formula returns values??

    Please Login or Register  to view this content.
    Or is there an even better method I'm not aware of?

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: pasting formulas as values with multiple selections

    I would have to see the sheet to be sure, but the "#NA" is probably generated because of a link to the original source, or by a formula outside the specivied range that you are converting.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    Re: pasting formulas as values with multiple selections

    The odd thing is, it works, if I split it up into two parts! However, since some of my ranges have more than 2 areas, I was trying to find a way to shorten the code...

    Please Login or Register  to view this content.

+ 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. copy then paste as values on multiple selections
    By esbencito in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-11-2018, 05:21 AM
  2. Code is pasting formulas instead of values - Please help
    By ByronHopf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2014, 08:25 PM
  3. [SOLVED] Macro Pasting Values Instead of Formulas
    By bryanmarks in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-07-2014, 10:26 AM
  4. Replies: 3
    Last Post: 05-16-2013, 06:08 AM
  5. pasting values instead of formulas
    By fabrecass in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2013, 08:22 AM
  6. Pasting Values with Formulas???
    By mccormij in forum Excel General
    Replies: 2
    Last Post: 04-10-2007, 07:05 AM
  7. [SOLVED] Pasting to Multiple Selections.
    By JayQue in forum Excel General
    Replies: 1
    Last Post: 01-07-2006, 07:50 AM

Tags for this Thread

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