+ Reply to Thread
Results 1 to 3 of 3

Macro does not overwrite excisting data

  1. #1
    Registered User
    Join Date
    12-30-2011
    Location
    East, Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    4

    Macro does not overwrite excisting data

    Hi,

    First, Happy newyear to all of you !
    I,ve got a button in Excel 2010, that extracts data from a mysql database. When the data is in Excel, the macro searches for duplicates in column B and gives te rows where it finds duplicates a certain color.
    This works great, except for one detail.

    In the first macro is defined that the data should be placed from cell A5.
    When i first click the button, thats excactly what happends.
    But, when i click the button again, it does not overwrite the current rows, but it places the data

    at cell M5. M5 is the first empty cell on row 5.
    How can I make the script to overwrite the excisting when i click the button ?

    Please Login or Register  to view this content.
    Thanks in advance
    Mesjoggah
    Last edited by DonkeyOte; 01-01-2012 at 08:34 AM. Reason: CODE tags per Rules please...

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Macro does not overwrite excisting data

    Please use CODE tags per Forum Rules.

    Quote Originally Posted by Mesjoggah
    How can I make the script to overwrite the excisting when i click the button ?
    Change:

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-30-2011
    Location
    East, Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Macro does not overwrite excisting data

    Hi DonkeyOte,

    Thank you for your reply and next time i will use the code tags !

    Unfortunally, the replacement of that line did not work, the data is still placed at M5, when i click the button twice..

    Mesjoggah

+ 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