+ Reply to Thread
Results 1 to 3 of 3

Copy cell value from 1 workbook to another workbook based on criteria

  1. #1
    Registered User
    Join Date
    12-10-2014
    Location
    -
    MS-Off Ver
    -
    Posts
    3

    Copy cell value from 1 workbook to another workbook based on criteria

    hi all, i have 2 workbook. WB1 is named SCORESHEET and WB2 named MASTER. WB1 is template for my staff (+-50 staffs) to log in data daily. It contains only 1 sheet and the name is selected via dropdown button. Date to keyed in daily based on their working day. The score in WB1 will accumulate daily based on data keyed in. The staff are required to save and send this myself.

    WB2 contains multiple sheets (+-50) named based on the staff. There is template in all the sheet and it is the same except for the name on each sheet.

    I require a macro which copies selected cell value from WB1 into WB2 according to name of the staff, date and the score accordingly. The WB2 will be saved in network but staffs are not allowed to open it.

    attached is the workbook sample.Scoresheet.xlsmMASTER.xlsm

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Copy cell value from 1 workbook to another workbook based on criteria

    Do you have MS Access? and do all staff have access to a single central directory?

    If so, then Id recommend creating a quick Access database containing a table to hold this data, then on pressing the button you send the data to the table, the master sheet will then have a script in to pull the data out in whatever format, calculations etc you need.

    There are (in my opinion) many benefits to this, firstly its easier to code, you just need setup a connection to the database and pass the relevant data to it. Secondly, its far more powerful to get data out and will hold years and years worth of data without a problem whereas the spreadsheet will soon look overcomplicated if you hold a lot of days.

    Finally (whichever method you do), if all staff have a logon to the system then you can collect the staff details automatically, this reduces errors of staff picking the correct name and reduces the number of steps they need to carry out.

    add the following to a module:
    Please Login or Register  to view this content.
    =fnGetPID() will then return their Windows logon name.
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    12-10-2014
    Location
    -
    MS-Off Ver
    -
    Posts
    3

    Re: Copy cell value from 1 workbook to another workbook based on criteria

    Quote Originally Posted by pjwhitfield View Post
    Do you have MS Access? and do all staff have access to a single central directory?

    If so, then Id recommend creating a quick Access database containing a table to hold this data, then on pressing the button you send the data to the table, the master sheet will then have a script in to pull the data out in whatever format, calculations etc you need.

    There are (in my opinion) many benefits to this, firstly its easier to code, you just need setup a connection to the database and pass the relevant data to it. Secondly, its far more powerful to get data out and will hold years and years worth of data without a problem whereas the spreadsheet will soon look overcomplicated if you hold a lot of days.

    Finally (whichever method you do), if all staff have a logon to the system then you can collect the staff details automatically, this reduces errors of staff picking the correct name and reduces the number of steps they need to carry out.

    add the following to a module:
    Please Login or Register  to view this content.
    =fnGetPID() will then return their Windows logon name.
    Hi unfortunately no MS Access. But we do have central directory where both the workbook can be stored

+ 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. Copy 2 cells from each Row (into another Workbook) Based on Criteria of a third cell?
    By pharmerjoe7 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-07-2013, 12:39 PM
  2. Copy two cells in on workbook to another workbook based on two criteria, but more
    By oldboots in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2013, 06:17 AM
  3. Copy two cells in on workbook to another workbook based on two criteria, but more
    By oldboots in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-16-2013, 05:44 AM
  4. Replies: 4
    Last Post: 09-15-2012, 02:18 PM
  5. [SOLVED] copy active sheet, create new workbook, name new workbook based on cell reference
    By jm0392 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2012, 07:12 PM

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