Closed Thread
Results 1 to 3 of 3

Macro for Filling the empty cells based on current date.

  1. #1
    Registered User
    Join Date
    12-04-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    91

    Macro for Filling the empty cells based on current date.

    Dear Friends,

    I have a spreadsheet for entering Employee's details. On that I am entering employees daily attendance status. It is almost 600 employees and entering each every employee is a herculean task. So What I think was I can enter on the Absent, and Casual Leave, etc and remaining staff will be PRESENT. So that If I get a command button for that, I need to apply "P" on the remaining cells on that particular column. More clearly, I have 31 columns on day basis and on each column's 7th ROW contains that particular days date. So the macro has to search the empty CELL's between that date's particular column and fill it with "P". The Status rows will be between 8:500 on each day. One more thing the macro has to check. The empty cell on each day has to fill only if that cells respective "B" cell having any value. More clear I am entering Employees name in the "B" Column from 8:500. So, After clicking the command button, macro has to find that particular date containing column and find the empty cells between that column 8th ROW to 500th ROW and has to fill that CELL with "P" ONLY IF there is any name in the B column.

    Kindly Suggest me a macro for this.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Macro for Filling the empty cells based on current date.

    duplicate post - http://www.excelforum.com/excel-prog...rent-date.html
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Macro for Filling the empty cells based on current date.

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    http://www.excelforum.com/excel-prog...rent-date.html
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro for Filling the empty cells based on current date.
    By aneshdas in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 01-15-2014, 12:42 PM
  2. MACRO to empty a range of cells based on whether specified cell is empty
    By TBJV in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 10:35 PM
  3. Macro for Filling First Empty Row Based on row above value
    By miners in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-19-2009, 09:51 PM
  4. Filling cells with 3 different colors based on date in cell and todays date
    By chinookcrew in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-23-2009, 07:36 AM
  5. Filling in a cell based on another cells date criteria
    By cmatera in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-21-2008, 10:11 AM

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