+ Reply to Thread
Results 1 to 9 of 9

Why does macro keep changing figure already input

  1. #1
    Registered User
    Join Date
    04-23-2022
    Location
    london
    MS-Off Ver
    office365
    Posts
    90

    Why does macro keep changing figure already input

    Hi

    I have this macro and it copies and pastes into the next avail column in sheet 2 but when it copies and pastes it overwrites data from previous columns with latest data too when it shouldnt be.

    Any ideas?


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Why does macro keep changing figure already input

    Ignore - misread, but it does seem to work correctly - copies to the next available column on sheet 2 every time it is run.
    Last edited by cytop; 06-24-2022 at 10:20 AM.

  3. #3
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Why does macro keep changing figure already input

    Please Login or Register  to view this content.
    try that

  4. #4
    Registered User
    Join Date
    04-23-2022
    Location
    london
    MS-Off Ver
    office365
    Posts
    90

    Re: Why does macro keep changing figure already input

    tried that and it comes up with run time error 1004 select method of range class failed.

  5. #5
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Why does macro keep changing figure already input

    Please Login or Register  to view this content.

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Why does macro keep changing figure already input

    You've linked the pasted cells to the source. If the source changes, so will all the pasted cells, including previously pasted ones.
    Rory

  7. #7
    Registered User
    Join Date
    04-23-2022
    Location
    london
    MS-Off Ver
    office365
    Posts
    90

    Re: Why does macro keep changing figure already input

    right so would it work if I was to paste values rather than paste link?

  8. #8
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Why does macro keep changing figure already input

    are the values formulas or just letters/numbers?

  9. #9
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Why does macro keep changing figure already input

    Yes it would work

+ 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] Macro to ask for two figures and subtract the first figure from the second and input that
    By DannyJ in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-06-2015, 03:47 PM
  2. Macro for displaying all possible outcomes by changing 12 input variable
    By varunsinghbais in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-30-2014, 03:48 AM
  3. Replies: 4
    Last Post: 02-03-2014, 08:05 AM
  4. [SOLVED] Input box: can't figure out how to activate that selection for hte rest of the macro
    By charles1394 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2013, 11:04 PM
  5. Changing code from Manual input to Calculated input
    By Gertheking in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2012, 11:41 AM
  6. Cant Figure out how to program macro to input data into 2nd worksheet
    By robnez in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-31-2012, 05:12 AM
  7. [SOLVED] Why do cells skip around when I am trying to input figure within
    By Query mind in Tucson in forum Excel General
    Replies: 1
    Last Post: 11-02-2005, 06:17 PM

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