+ Reply to Thread
Results 1 to 5 of 5

auto overwrite cells

Hybrid View

  1. #1
    Registered User
    Join Date
    09-14-2012
    Location
    buffalo, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    auto overwrite cells

    Hello everyone. I'm hoping someone here can help me with my problem. I am currently using excel 2007 to read comport data into a sheet.

    For example. i have cells A1 thru A12 that are written with the data from the comport. I need it to do either one of two things.

    1. email me the last set of changes made to the sheet
    or
    2. delete the existing data on the sheet so that the new data will overwrite what already exists.

    For example. i have cells A1 thru A12 that are written with the data from the comport.

    If more information is required I can post anything needed.

    Thanks in advance.
    ctekin

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: auto overwrite cells

    Hello and welcome to the forum. I don't know exactly how the data is imported from the com port but this code will clear those cells:

    Range("A1:A12").clear
    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    09-14-2012
    Location
    buffalo, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: auto overwrite cells

    thank you. I'm sure i'll have more as i get further with this. thanks again. that was easier than i thought.

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: auto overwrite cells

    If you have any further questions then feel free to ask. If you are satisfied with the answers to your question then please mark the thread as solved.

    Good luck.

    abousetta

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: auto overwrite cells

    @ ctekin

    Welcome to the forum.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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