+ Reply to Thread
Results 1 to 6 of 6

how to get my public var to keep the presets

  1. #1
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    how to get my public var to keep the presets

    i have the following code that doesn't work. im looking for a reason why? what am i doing wrong.

    Please Login or Register  to view this content.
    for some reason, the code for who_player is always 1 and it never increments?

    thoughts?

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: how to get my public var to keep the presets

    Player is 0 so who_dealer resets to 1
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: how to get my public var to keep the presets

    but my first msgbox returns a 1. how can i make this work?

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: how to get my public var to keep the presets

    What is Player supposed to be?

  5. #5
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: how to get my public var to keep the presets

    Here is the code for player

    Please Login or Register  to view this content.

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: how to get my public var to keep the presets

    Assuming you ran the players routine first, and that it's in a normal module in the same workbook, what is the value of player? As soon as who_dealer exceeds that value, it gets reset to one, so I believe player is less than 2.

+ 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. Public vs Private?
    By jplank in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2016, 03:05 PM
  2. [SOLVED] Public variables
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-16-2015, 04:25 PM
  3. [SOLVED] Public Variables
    By iamGreenhorn in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-21-2014, 12:38 PM
  4. Filtering columns, creating presets
    By HRSanchez in forum Excel General
    Replies: 0
    Last Post: 03-18-2009, 01:00 PM
  5. Use of PUBLIC
    By BillCPA in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-07-2006, 08:45 AM
  6. Global/Public
    By Fox via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2006, 03:50 PM
  7. [SOLVED] Dim vs. Public
    By Jason Morin in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-27-2005, 10: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