+ Reply to Thread
Results 1 to 4 of 4

getting "invalid qualifier" error while using " .text"

  1. #1
    Registered User
    Join Date
    10-26-2014
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    5

    getting "invalid qualifier" error while using " .text"

    Hi all,

    I am very new to vba coding. I am trying to use the .text property but, getting an "invalid qualifier" error message while running the code. Pls guide me as to where i am making a mistake. Here is the code...

    Please Login or Register  to view this content.
    Thanks in advance.

  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: getting "invalid qualifier" error while using " .text"

    userpass is a string, it has no properties.

    Try removing .Text.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: getting "invalid qualifier" error while using " .text"

    .Text is a property of some Excel objects.

    Your userpass is a string variable, not an object. Strings are not objects, and have no properties.

    Ranges are objects that have both a .Text and a .Value property.
    .Value is a read/write property of a Range object, .Text is read-only for Ranges. (It is read-only for a Range object, for other objects (like TextBox objects) it is a read/write property)
    (See the Object Browser in the VB Editor to see all the Excel objects and their properties and methods)

    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Registered User
    Join Date
    10-26-2014
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    5

    Re: getting "invalid qualifier" error while using " .text"

    Thanks for the replies..

+ 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. Replies: 1
    Last Post: 08-15-2014, 06:00 AM
  2. [SOLVED] Help with "Invalid Qualifier" Error
    By QEJohn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-06-2014, 06:53 PM
  3. [SOLVED] How to Count number of "Error" and "OK" after the word "Instrument" found in table row
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 06:26 AM
  4. what does "Compile Error : Invalid Qualifier" mean?
    By funkymonkUK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2006, 04:48 AM
  5. Compiler says "Invalid qualifier" when using Application object
    By Eric in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2005, 09:05 PM

Tags for this Thread

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