Results 1 to 4 of 4

Macro that copies and pastes value from one cell, if another cell contains data

Threaded View

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    3

    Macro that copies and pastes value from one cell, if another cell contains data

    Hi folks,

    I have searched several forums (including this one) for two days and have yet to find what I am looking for exactly.

    I have a workbook (which I will attach) that contains 2 worksheets. Worksheet "MasterList" has 2 columns. One contains employee names and the other contains their start times on a particular day. The employee names on this sheet comprise the named range (All_Staff). I would like to have a macro that examines the cell next to "All_Staff" and if it contains a value (<> Empty) then copy the employee name and paste it into the named range (Sunday_People) on sheet "Availability". Ideally this would loop through every name in the "All_Staff" range and insert the name into the "Sunday_People" range.

    I have found the following links which seem similar to what I am after, but are a bit confusing.

    http://www.excelforum.com/excel-prog...ther-data.html
    http://www.excelforum.com/excel-prog...ther-cell.html

    Here is the example workbook:Employees.xlsx

    Any help would be greatly appreciated. I am new to VBA, and this one is causing me to stumble a bit.

    Thanks in advance.
    Last edited by defensorfedei; 08-02-2012 at 04:25 PM. Reason: forgot to post links.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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