+ Reply to Thread
Results 1 to 3 of 3

How to Correct This Formula from Converting When Pasted Used VBA

  1. #1
    Registered User
    Join Date
    11-03-2004
    Posts
    75

    Question How to Correct This Formula from Converting When Pasted Used VBA

    I'm trying to: (1) select a cell, (2) paste in a formula, (3) copy down the formula without it converting itself into something unusable.
    I've seen this happen once before but forgot why it occurs and what to do to prevent it from happening again.

    Here's the function within my small test file:
    =SUMIF(INVENTORY!$C$2:$C$5,PARTS!B2,INVENTORY!$A$2:$A$5)

    It converts itself to:
    =SUMIF(INVENTORY!$C$2:$C$5,PARTS!XFD2,INVENTORY!$A$2:$A$5)


    Here's the code I'm trying to utilize, where the formula gets trashed out - but if anyone has better ideas - I'm open to suggestions!

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: How to Correct This Formula from Converting When Pasted Used VBA

    Does this work?
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    11-03-2004
    Posts
    75

    Re: How to Correct This Formula from Converting When Pasted Used VBA

    WOW - That works beautifully Norie! Thanks so much!
    Still learning!

+ 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 01.01.01 date to correct format
    By Dave350z in forum Excel General
    Replies: 4
    Last Post: 06-27-2012, 09:56 AM
  2. Converting timestamp to correct days/hours for sorting
    By redbrad0 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-10-2010, 06:39 PM
  3. Replies: 3
    Last Post: 01-26-2009, 05:50 PM
  4. [SOLVED] [SOLVED] Converting Wrong Time Value to Correct One
    By David Lanrizen in forum Excel General
    Replies: 2
    Last Post: 02-05-2006, 09:40 PM
  5. [SOLVED] Converting data from a pasted document
    By Dave in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-04-2005, 12:06 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