+ Reply to Thread
Results 1 to 3 of 3

Macro to Paste Scenario Data

  1. #1
    Registered User
    Join Date
    02-07-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    16

    Macro to Paste Scenario Data

    Hi,
    I'm trying to get a macro to grab a range of cells from one worksheet and paste them into another one. I want the macro to choose between 4 different sets of data based on a single cell value (1,2,3, or 4). I have previously used =choose to do this however my model is going to run very complex sensitivty calcs and I don't want to waste computer grunt on 500 cells having =choose statements.

    I have attached an example of my sheets, and I want the data to paste into the orange cells when I click the button.

    I don't want to use excel's scenario manager, I want to do it using a macro, or some other clever way that anyone can think of.

    I am quite inexperienced with VBA in the multi worksheet & global variable setup type stuff.

    Any advice greatly appreciated, Cheers!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-07-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Macro to Paste Scenario Data

    Can you =choose a named range?
    Does this use less grunt than having an =choose in 500 different cells?

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Macro to Paste Scenario Data

    hi, code for the button "Paste Scenario"

    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)

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