+ Reply to Thread
Results 1 to 4 of 4

suppress Excels message boxes when a VB code is running

  1. #1
    Registered User
    Join Date
    08-30-2006
    Posts
    40

    suppress Excels message boxes when a VB code is running

    I have a macro that I need a hand with. The form that users fill out contains 1 string that actually contains 2 different commands I need separated. For example, the text the user puts in is "text1*text2", and I need it to be "text1" and "text2". I wrote in code to do delimited text-to-columns with * as the separator, and that works great but Excel prompts the user with "Do you wish to replace the contents of the destination cells". The answer is always yes, so is there a way I can make it just not pause & ask that?

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Have you tried
    Please Login or Register  to view this content.

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    suppress Excels message boxes when a VB code is running

    Here's the typical approach:

    Put this command just before you do the Text-to-Columns:
    Please Login or Register  to view this content.
    After your code runs, use this
    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    08-30-2006
    Posts
    40
    Sure does, thanks!!

+ 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