+ Reply to Thread
Results 1 to 11 of 11

overwrite data already present

  1. #1
    Registered User
    Join Date
    07-19-2012
    Location
    Delhi,India
    MS-Off Ver
    Excel 2003
    Posts
    12

    overwrite data already present

    I have a macros that copies the days attendance data from 1 sheet and pastes the dump into another worksheet.
    I want to add a code that checks if todays data has already been psted or not.
    In other words,

    today's date is stored in a variable,
    the macros looks for that date in the dump,
    on finding it,
    it displays a msg asking if you want to overwrite (y/n),
    on receving "yes" as an answer it should overwrite todays data starting from the first cell that contains today's date else leave it as it is.

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: overwrite data already present

    Hello there,
    on receving "yes" as an answer it should overwrite todays data starting from the first cell that contains today's date
    Over right it with what?

  3. #3
    Registered User
    Join Date
    07-19-2012
    Location
    Delhi,India
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: overwrite data already present

    With todays attendance data already copied in the office clipboard

  4. #4
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: overwrite data already present

    the macros looks for that date in the dump,
    on finding it,
    Where is this date located? Column and Row?

    Thanks!

  5. #5
    Registered User
    Join Date
    07-19-2012
    Location
    Delhi,India
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: overwrite data already present

    the date has to be searched in column B only. On locating todays date in a cell, it should ask if the data has to be overwritten, it should then paste the already copied data of the days attendence starting from the first cell that has todays date.

    The main reason I am going through all this trouble is to ensure no body paste the same data by mistake. If someone wants to replace the data the macros should overwite the data already present rather than paste the data once again in new cells.

  6. #6
    Registered User
    Join Date
    07-19-2012
    Location
    Delhi,India
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: overwrite data already present

    Please Login or Register  to view this content.
    Last edited by Cutter; 10-15-2012 at 04:55 PM. Reason: Added code tags

  7. #7
    Registered User
    Join Date
    07-19-2012
    Location
    Delhi,India
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: overwrite data already present

    I have mentioned the code I have used to paste the data in the "RT attendance dump" file

  8. #8
    Registered User
    Join Date
    07-19-2012
    Location
    Delhi,India
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: overwrite data already present

    any help???

  9. #9
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: overwrite data already present

    Could you please provide an example file?

    Thanks!

  10. #10
    Registered User
    Join Date
    07-19-2012
    Location
    Delhi,India
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: overwrite data already present

    Please find attached an example file which contains the attendance data for the month of July.
    Any help will be mush appreciated
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    07-19-2012
    Location
    Delhi,India
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: overwrite data already present

    Any help guys?????

+ Reply to Thread

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