+ Reply to Thread
Results 1 to 5 of 5

Copy & paste input data to sheet, copy result back out

  1. #1
    Registered User
    Join Date
    09-27-2010
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    13

    Copy & paste input data to sheet, copy result back out

    Hello,

    I am making a simulation which has an input single value and an output set of 3 results.

    This single input value (cell C4) affects various cells & calcs in a large table. The output sums and totals of this table are within cells K3, L3, M3.

    This table is working fine - i have no problems with it. I have logged data in another sheet which in one log consists of around 44,000 lines of data. One column (H) contains figures which i would like to one-by-one enter into C4 on my table tab, and then copy/paste as values out the 3 results back against the data log.

    Ive recorded a macro of me doing this 3 times:

    Please Login or Register  to view this content.
    I suppose i need to work out how to increment the cell references on the data log tab.

    I've only made one Macro before and this forum provided invaluable help! Im hoping once again it can help me as i dont know really where to start. Looking around online, there are methods which appear to do such a thing a different way but they all confuse me.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Copy & paste input data to sheet, copy result back out

    Try this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    09-27-2010
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Copy & paste input data to sheet, copy result back out

    OK - some Macro Magic there! Im not quite seeing how it works; but it does!

    I pasted it in to a new macro on its own and to my amazement it started doing just the thing it should.

    Going to try and research the terms used and reverse engineer it. For now, many thanks for your assistance.

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Copy & paste input data to sheet, copy result back out

    Hello, this can do the job

    Please Login or Register  to view this content.
    Kind regards
    Leo

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Copy & paste input data to sheet, copy result back out

    Quote Originally Posted by stuartsjg View Post
    OK - some Macro Magic there! Im not quite seeing how it works; but it does!

    I pasted it in to a new macro on its own and to my amazement it started doing just the thing it should.

    Going to try and research the terms used and reverse engineer it. For now, many thanks for your assistance.
    You're welcome. Alakazam...poof.

+ 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. Autofilter database,copy paste result in another workbook sheet
    By Mr. Confused in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-10-2015, 10:29 AM
  2. Replies: 3
    Last Post: 01-01-2015, 06:26 AM
  3. [SOLVED] VBA to find data in Sheet 2 copy and paste back in Sheet 1
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-10-2014, 09:39 PM
  4. [SOLVED] Copy Range And Paste It As Link On Another Sheet With Using Input Box
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-08-2014, 05:21 AM
  5. Macro to input value, copy output, paste it to another sheet
    By Settler7 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2013, 10:08 PM
  6. Automate copy and paste and copy and paste back to excel
    By Bmw318be in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2013, 05:42 AM
  7. Automate copy and paste and copy and paste back to excel
    By Bmw318be in forum Access Tables & Databases
    Replies: 0
    Last Post: 02-23-2013, 05:42 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