+ Reply to Thread
Results 1 to 6 of 6

Wrong Dim for Macro What Should I Change It To

  1. #1
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    214

    Wrong Dim for Macro What Should I Change It To

    Does anybody know the Declaration I should give uID. I had it as an integer and the macro was working fine but I know have uID's that contain letters and dashes as you can see.
    Please Login or Register  to view this content.
    This is off of a userform that I am running.

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Wrong Dim for Macro What Should I Change It To

    As String seems correct.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    214

    Re: Wrong Dim for Macro What Should I Change It To

    I'm getting a Syntax error when I run it and the uID values are in red.

  4. #4
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    214

    Re: Wrong Dim for Macro What Should I Change It To

    This is the rest of the user Form.
    Please Login or Register  to view this content.

  5. #5
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Wrong Dim for Macro What Should I Change It To

    I did not see you do not have quotation marks:
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    214

    Re: Wrong Dim for Macro What Should I Change It To

    Thank You. Simple fix.

+ 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. HELP: What is wrong with this macro??
    By henwood in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2012, 08:20 AM
  2. Replies: 4
    Last Post: 07-07-2009, 05:28 PM
  3. Change color if wrong
    By NosLliWhsoj in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-14-2006, 11:16 AM
  4. What's wrong with this macro?
    By belly0fdesire in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-26-2006, 07:00 PM
  5. [SOLVED] In Excel spreadsheeet the dates change to the wrong date after we.
    By ziptozipper in forum Excel General
    Replies: 1
    Last Post: 02-02-2005, 11:06 AM

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