+ Reply to Thread
Results 1 to 4 of 4

Using Option Buttons with Printing Function

  1. #1
    Registered User
    Join Date
    10-05-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    18

    Using Option Buttons with Printing Function

    Guys,

    I'm still a green thumb at VBA's however you guys have been able to help me 9 times out of 10.

    I am trying to make a printing function, I have 3 option buttons & a command button. What I would like to do is click one of the 3 option buttons then click the command button to print out the sheets as detailed in the code I have so far as below.

    Can anyone assist?

    Please Login or Register  to view this content.

  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: Using Option Buttons with Printing Function

    All you appear to be missing are End Ifs.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    10-05-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Using Option Buttons with Printing Function

    Hi Norie,

    I have tried using your code but when I do I receive a Run Time Error '424'.

    I also tried running via the userform & selecting one of the option buttons but I still receive the same error highlight the line 'If OptionButton1.Value = True Then'. Can you see anything else I may require in the code?

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Using Option Buttons with Printing Function

    Where is the code located and what is the error message?

+ 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. enable certain combo buttons based on user selected option buttons
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-20-2013, 06:43 AM
  2. How can I insert multiple sets of option buttons (radio buttons) in Excel 2010?
    By mickwooduclan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2013, 10:01 AM
  3. [SOLVED] Disabling an Entire Frame with Option Buttons if other Option Buttons are not clicked.
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-20-2012, 04:07 AM
  4. Printing & Option Buttons
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-20-2012, 03:25 AM
  5. Printing using Option Buttons and Check Boxes
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-16-2012, 05:34 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