+ Reply to Thread
Results 1 to 2 of 2

Including number format paste special in the Macro

  1. #1
    Registered User
    Join Date
    01-13-2023
    Location
    Oslo
    MS-Off Ver
    365
    Posts
    1

    Unhappy Including number format paste special in the Macro

    Hi! Is it possible to paste values formatted as number? Somehow after running the macro certain values in the sheets are "number stored as text", resulting in #N/A for lookups in the following steps/worbooks.

    Please Login or Register  to view this content.
    Any ideas? I tried already this xlPasteValuesAndNumberFormats without success.

    Thanks

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,540

    Re: Including number format paste special in the Macro

    The likely cause of the problems is that the values in the source ranges are text, not numbers. Check the source carefully. Remember that the formatting of the cells can confuse you.
    ..::Edit:
    Another reason could be that the target cells are formatted as text.

    You can also use slightly different code that does not use the clipboard.
    Please Login or Register  to view this content.
    ::..

    Artik
    Last edited by Artik; 01-13-2023 at 10:38 AM.

+ 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. VBA HLOOKUP and Paste Special with Values and Number Format
    By TheRazor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-06-2021, 01:31 PM
  2. Trouble including paste special in macro
    By tpollard1 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-09-2016, 09:01 AM
  3. [SOLVED] Including a special line in my border's macro
    By coach.32 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2015, 05:46 PM
  4. Replies: 2
    Last Post: 03-27-2012, 02:49 PM
  5. Changing Paste Special to Values and Format
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2010, 06:25 PM
  6. [SOLVED] Format Paste Special - is there a way to do this ?
    By SteveW in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-20-2006, 02:55 PM
  7. No csv format in Paste Special
    By dborski in forum Excel General
    Replies: 4
    Last Post: 08-08-2005, 10:43 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