+ Reply to Thread
Results 1 to 4 of 4

type mismatch, for string/value

  1. #1
    Registered User
    Join Date
    01-12-2017
    Location
    canada
    MS-Off Ver
    2010
    Posts
    7

    type mismatch, for string/value

    I am using the code below, and trying to change the shape color,, on the excel sheet, I added a combobox with items "vbBlack, vbRed,vbYellow"

    everytime the code runs, it gives me an Error 13 Type mismatch. how can I fix this, so the error doesn;t reproduce and accept the string/value.


    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 01-12-2017 at 03:14 PM. Reason: Added missing CODE tags. Please read and follow the Forum Rules, link above in the menu bar. Thanks.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: type mismatch, for string/value

    Any chance you could upload a sample workbook?

    Click on GO ADVANCED, scroll down and click Manage Attachments.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-12-2017
    Location
    canada
    MS-Off Ver
    2010
    Posts
    7

    Re: type mismatch, for string/value

    here is the workbook, the goal is to change the cell tracker line colors, thank you
    Attached Files Attached Files
    Last edited by slemieux99; 01-12-2017 at 03:46 PM.

  4. #4
    Registered User
    Join Date
    01-12-2017
    Location
    canada
    MS-Off Ver
    2010
    Posts
    7

    Re: type mismatch, for string/value

    I have posted workbook example

+ 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. [SOLVED] Getting Type Mismatch with String passed to a Function with String parameter
    By allansy8 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-30-2014, 10:33 PM
  2. Replies: 0
    Last Post: 05-29-2014, 09:38 AM
  3. ODBC SQL string - type mismatch
    By spike1988 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-25-2013, 06:41 PM
  4. Error passing element of string array get ByRef argument type mismatch
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-17-2011, 02:59 PM
  5. Testing value of string but its a number........gives type mismatch error
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-18-2011, 05:06 PM
  6. Type mismatch. How do combine a string and a number to make a range?
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-21-2011, 11:17 AM
  7. [SOLVED] Help: Compile error: type mismatch: array or user defined type expected
    By lvcha.gouqizi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2005, 05:05 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