+ Reply to Thread
Results 1 to 3 of 3

What does type of variable does .Value give

  1. #1
    Forum Contributor
    Join Date
    02-16-2012
    Location
    London, England
    MS-Off Ver
    Excel mac 2011
    Posts
    238

    What does type of variable does .Value give

    Hi there,

    I am trying to get an integer out of a cell in Excel, but:
    Please Login or Register  to view this content.
    is giving me a type mismatch.

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

    Re: What does type of variable does .Value give

    What's returned by Value depends what's in the cell.

    It could be text, a numeric value, an error value, an array etc.

    Have you checked what's in Target when you get the error?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    02-16-2012
    Location
    London, England
    MS-Off Ver
    Excel mac 2011
    Posts
    238

    Re: What does type of variable does .Value give

    Ah, no I hadn't thought of that, variable that is in there is a string.

+ 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. Variable Type Mysteries
    By npatridge in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2015, 04:53 PM
  2. Input box to needs different type of variable type (RC vs. A1?)
    By Niedermee in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-18-2014, 05:00 PM
  3. [SOLVED] vlookup type function, see if string has key, if it does give value
    By edsters in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-13-2013, 10:05 PM
  4. Replies: 6
    Last Post: 08-06-2012, 03:09 PM
  5. Popup combobox and give a variable that value
    By goldstandard in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-25-2011, 10:13 AM
  6. Variable type
    By arnab0711 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2010, 03:57 AM
  7. What can cause a Variable Type to disappear
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2009, 05:19 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