+ Reply to Thread
Results 1 to 6 of 6

Copy Cell Value to Another Sheet - Range based on user inputs into cells - HOW???

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    9

    Question Copy Cell Value to Another Sheet - Range based on user inputs into cells - HOW???

    Hi All,

    Thank you very much in advance for all your help.
    I have a work book that does helps me organize my personal accounting. Each week I spend bl**dy ages allocating the values to the corresponding cells in the other work sheet. What I would like to do is develop some code that reads that date value in the relevant cell, reads the Cost / Revenue center value from the relevant cell, copies the currency value from the relevant cell, searches the other workbook, matches the two together and then pastes it in the relevant cell.

    I've played around with the logic and have come up with this;

    x = cell with currency value.
    y = variable that needs to be matched to cell in separate workbook.
    z = variable that needs to be matched to cell in separate workbook.
    y2 = matching string variable in separate workbook.
    z2 = matching string variable in separate workbook.
    b = separate workbook

    COPY x TO y = y2 AND z = z2 IN b

    MsgBox= "Value filed in"_ & y2 &" and "_& z2" in workbook "_b".

    *The point I'm confused at is how to define a range based on a variable ... I think?

    All help would be HUGELY appreciated!!!

    Thanks,
    W

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Copy Cell Value to Another Sheet - Range based on user inputs into cells - HOW???

    Sounds simple enough, but we need the workbook example with the two sheets, please (so put the sheet from the seperate workbook in the example workbook as well, please).
    Please click the * below if this helps

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy Cell Value to Another Sheet - Range based on user inputs into cells - HOW???

    Hi WillJ,

    You can use the "finder" :

    Please Login or Register  to view this content.
    which will return a range - so you have all of its properties at hand!

    So, punch up "Find Method" on your Excel Help
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Registered User
    Join Date
    08-07-2013
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    9

    Talking Re: Copy Cell Value to Another Sheet - Range based on user inputs into cells - HOW???

    WOW! Thanks for the quick feedback, hugely appreciated!!
    I'll be looking into this again next Sunday, so will update as to how I resolve the issue, or if I've got any more questions. Thanks again guys / girls!

    W

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy Cell Value to Another Sheet - Range based on user inputs into cells - HOW???

    You're welcome!

  6. #6
    Registered User
    Join Date
    08-07-2013
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Copy Cell Value to Another Sheet - Range based on user inputs into cells - HOW???

    Again ... delayed! Next Sunday I'll let you know how I get on.
    Best,
    W

+ 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. Replies: 8
    Last Post: 04-12-2013, 10:54 AM
  2. [SOLVED] Copy Range of Cells to Another Sheet Based on Criteria
    By hedefinesme in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-15-2012, 02:04 AM
  3. [SOLVED] In copy/pasting cells to a new sheet cannot automate cells (1, x) based on user input
    By CEDarnell in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-05-2012, 06:08 PM
  4. [SOLVED] Macro: Dynamic creation of sheet based on cell value then copy range to the new sheet
    By BeachRock in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-15-2012, 11:31 AM
  5. Vba to Create copy of worksheet and range of cells to used to calculate inputs.
    By Wyliecody in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2012, 04:48 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