+ Reply to Thread
Results 1 to 3 of 3

converting a variable to uppercase.

Hybrid View

  1. #1
    Registered User
    Join Date
    07-22-2005
    Location
    canada
    Posts
    73

    converting a variable to uppercase.

    Hey,

    ok, Dave you mentioned in another thread to try :

    Sub Button1_Click()
    Range("B1") = UCase$(Range("A1"))
    Range("C1") = UCase$(Range("C1"))
    
    End Sub
    place text in A1 and C1 and run the macro
    However, this work with converting cells to uppercase, how would I convert this to convert vba textbox.text to uppercase. here is what I have tried,
    that does not work:

    
    'does not work
    FNameInput = UCase(FNameInput)
    LNameInput = UCase(LNameInput)
    
    'does not work
    FNameInput = UCase$(FNameInput)
    LNameInput = UCase$(LNameInput)
    
    'does not work
    FNameInput.Text = StrConv(FNameInput.Text, vbUpperCase, 1)
    LNameInput.Text = StrConv(LNameInput.Text, vbUpperCase, 1)
    The problem, is that all of these return "Cannot find project or library" error.

    Is their a command that work in excel to do this ? I am using Excel 2003.

    Thanks in advance,

    oliver.

  2. #2
    Forum Contributor
    Join Date
    06-02-2005
    Location
    India
    MS-Off Ver
    2007
    Posts
    138
    The problem is with one of your library file missing.

    Solution:
    After opening your workbook go to VBA editor. Goto Tools menu and click References
    Find any available references with name starting as 'Missing...'
    Uncheck that checkbox and click ok. Save your work and quit excel.
    Restart and see the difference.
    HTH
    ilyaskazi

  3. #3
    Registered User
    Join Date
    07-22-2005
    Location
    canada
    Posts
    73

    I owe you a beer...

    Hey,

    Thank you, your absolutely correct. I worked on this document over the weekend at home, and from home I have a library for a phidgets controller that I play with, and it was attempting to find that library. Doh!. (beats head on desk).

    so... I owe you a beer. If your ever near otawa, canada, give me a dingle..LOL!.

    oliver.

+ 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