+ Reply to Thread
Results 1 to 4 of 4

Programming a confirm overwrite message box

  1. #1
    Registered User
    Join Date
    04-04-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Cool Programming a confirm overwrite message box

    Hello all,

    This is my first post and I apologise if it's in the wrong place.

    I have created a user form that allows various choices to be checked, which are then put into a cell in the spreadsheet.

    However, I want a 'confirm overwrite? (yes/no)' message to be displayed if there is data already in the cell - clicking yes proceeds to overwrite and clicking no aborts the overwrite procedure.

    Here is the code I already have, which is assigned to the OK box:
    Please Login or Register  to view this content.
    Any help is much appreciated.
    Last edited by Paul; 04-04-2012 at 01:02 PM. Reason: Added CODE tags for new user. Please do so yourself in the future.

  2. #2
    Valued Forum Contributor
    Join Date
    03-14-2012
    Location
    Arizona USA
    MS-Off Ver
    Excel 2000/2007
    Posts
    408

    Re: Programming a confirm overwrite message box

    Please replace your line

    Please Login or Register  to view this content.
    with this

    Please Login or Register  to view this content.

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Programming a confirm overwrite message box

    Hi Duality, welcome to the forum.

    Hopefully the following updated code does what you're seeking:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-04-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Programming a confirm overwrite message box

    Thank you both - both of these codings work.

    I'm sure you'll hear from me again soon.

+ 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