+ Reply to Thread
Results 1 to 3 of 3

Error cannot be detected?

  1. #1
    Registered User
    Join Date
    03-17-2016
    Location
    Japan
    MS-Off Ver
    2016
    Posts
    6

    Error cannot be detected?

    Please Login or Register  to view this content.
    http://s24.postimg.org/ncebpkbwz/excelvba.jpg

    Hello everyone! I don't know why excel cannot detect an error when I put texts in Cell A4 and B4. It just returns the combined texts in Cell C4. However, an error can be found when I put a number in Cell A3 and texts in Cell B3. Thanks for your help in advance.
    Attached Images Attached Images

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Error cannot be detected?

    I think this is because you can't mix and match. Adding two bits of text is permissible - it's just treated as concatenation - but adding a number and a text confuses Excel as it wants to treat the number in one way and the text in another, rather like trying to add an apple and an orange. That is my non-technical suggestion. What are you actually trying to do?

  3. #3
    Registered User
    Join Date
    03-17-2016
    Location
    Japan
    MS-Off Ver
    2016
    Posts
    6

    Re: Error cannot be detected?

    Quote Originally Posted by StephenR View Post
    I think this is because you can't mix and match. Adding two bits of text is permissible - it's just treated as concatenation - but adding a number and a text confuses Excel as it wants to treat the number in one way and the text in another, rather like trying to add an apple and an orange. That is my non-technical suggestion. What are you actually trying to do?
    What I am trying to do is I hope excel is able to detect there is an error once either two cells or one of the cells are put into texts.

+ 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. Compile Error: Ambigous name detected: Worksheet_Change
    By bjnockle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2014, 05:26 AM
  2. Compile Error : Ambiguous name detected
    By vasanthrs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2013, 09:58 AM
  3. [SOLVED] Compile error ambiguous name detected workbook_open
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-04-2013, 06:35 AM
  4. VBA Compile Error: Ambiguous name detected
    By kieranoduill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2013, 05:31 PM
  5. [SOLVED] compile error ambiguous name detected!?
    By Margate in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2013, 08:49 PM
  6. compile error: Ambiguous name detected :worksheet_change
    By ckz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2012, 12:41 PM
  7. Ambiguous name detected error
    By jpxexcelforum in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-07-2011, 06:04 PM
  8. Compile error: Ambiguous name detected
    By Aletha in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2008, 05:48 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