+ Reply to Thread
Results 1 to 5 of 5

Warning message box - Overwrite data, Y / N

  1. #1
    Registered User
    Join Date
    09-08-2014
    Location
    Czech republic
    MS-Off Ver
    Excel 2007
    Posts
    19

    Warning message box - Overwrite data, Y / N

    Hi I am using the code bellow.

    This code finds in another excel workbook the same text as defined cell and copy all the data in correct row.

    And I would like to add following message box:

    This code needs to recognise if the output row is blank or already filled with some text.
    If there is some text, then before copy I need the warning box "The data already exists!" Do you want to overwrite? YES - continue, No - stop copy.

    Could somebody help me?

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    09-08-2014
    Location
    Czech republic
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Warning message box - Overwrite data, Y / N

    To easy understand, attached you can see the simple example of my macro.
    Attached Images Attached Images

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Warning message box - Overwrite data, Y / N

    Maybe you can incorporate this?

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-08-2014
    Location
    Czech republic
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Warning message box - Overwrite data, Y / N

    Hm, but I want to show this message only if the data realy exists. Thats mean there must be "something" that first check the target columns. And I unfortunatelly cannot solve that issue.

    If the columns are blank - just copy without any message box.
    If the columns are filled - message box (Are you sure to overwrite date)

    Any idea?

  5. #5
    Registered User
    Join Date
    09-08-2014
    Location
    Czech republic
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Warning message box - Overwrite data, Y / N

    Last try....any idea?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Show same surname's first names after data validation warning message
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2013, 12:04 PM
  2. Warning message. And changing data without close message.
    By pinguino in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2013, 03:01 PM
  3. [SOLVED] Warning message if data filing not in a row
    By Mindoz in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-06-2012, 04:37 PM
  4. Message Warning Box/Data Validation
    By AdrianIT in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-10-2007, 10:45 AM
  5. run macro after yes to data validation warning message
    By al007 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-17-2005, 12:30 PM

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