+ Reply to Thread
Results 1 to 3 of 3

Passing a UserForm name as public variable

  1. #1
    Registered User
    Join Date
    07-03-2015
    Location
    brisbane
    MS-Off Ver
    2003
    Posts
    28

    Passing a UserForm name as public variable

    Hi all

    I have an instance where I want to create a function to clear radio buttons on UserForms to reduce duplication of code, but I’m having problems with arguments and ByRef. I thought I had it right as the code finally ran but the radiobutton values were not set to false (unselectEd) even though when I used debug.print it said the values were false?
    It’s driving me batty, please help.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Passing a UserForm name as public variable

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 04-16-2020 at 05:43 PM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    07-03-2015
    Location
    brisbane
    MS-Off Ver
    2003
    Posts
    28

    Re: Passing a UserForm name as public variable

    How easy was that.... I was overthinking it. Thank you once again for your wisdom AlphaFrog.....

+ 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. [SOLVED] Public Variable between Sub and Userform
    By BrianAll in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-22-2018, 07:34 AM
  2. [SOLVED] Problem with passing Userform parameter to public function
    By KiwiRickToo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2016, 09:46 PM
  3. [SOLVED] Passing a variable to a userform
    By OldMan62 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-08-2014, 12:58 PM
  4. Userform not passing through 1 particular public variable
    By newbvba in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2014, 09:59 PM
  5. [SOLVED] Public variables/declarations not passing to UserForm from Application Caller Button
    By Lungfish in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-02-2013, 06:11 PM
  6. Losing public variable when submitting userform
    By JP Romano in forum Excel General
    Replies: 2
    Last Post: 01-29-2009, 11:39 AM
  7. [SOLVED] Pass public variable from one userform to a second...
    By Mike Dunworth in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-03-2005, 08:05 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