Results 1 to 7 of 7

OptionButton Submit Error

Threaded View

Frankinstyyn OptionButton Submit Error 06-24-2014, 03:49 PM
HaHoBe Re: OptionButton Submit Error 06-25-2014, 04:50 AM
Frankinstyyn Re: OptionButton Submit Error 06-25-2014, 05:23 AM
HaHoBe Re: OptionButton Submit Error 06-25-2014, 09:25 AM
Frankinstyyn Re: OptionButton Submit Error 06-25-2014, 09:48 AM
  1. #1
    Forum Contributor
    Join Date
    04-09-2014
    Location
    Derby
    MS-Off Ver
    Office 2013 - For my sins
    Posts
    122

    OptionButton Submit Error

    Hi Guys,

    I'm getting an error with the code below.

    All I want is whatever option a user picks, "Good" "Neutral" or "Negative" to be moved to Sheet1 A B and C columns when the user presses submit.

    Appreciate your help and I've attached the spreadsheet as well.

    Thanks in advance

    Frank!

    Private Sub CommandButton1_Click()
    
    Dim emptyRow As Long
    
    'Make Sheet1 active
    Sheet1.Activate
    
    If optGood.Value = True Then
        Cells(emptyRow, 1).Value = "Good"
    If optNeutral.Value = True Then
        Cells(emptyRow, 2).Value = "Neutral"
    If optNegative.Value = True Then
        Cells(emptyRow, 3).Value = "Negative"
    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA Submit Error
    By Frankinstyyn in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-15-2014, 08:13 PM
  2. OptionButton Error 424 - Object Required
    By Dante_Blake in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-12-2011, 04:04 PM
  3. Syntax for returning Optionbutton (Userform) caption (Error 438 with ctr.value)
    By asha3010 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-02-2011, 11:25 AM
  4. Create a Submit button save filename as A1, submit email unc path, etc.
    By briant97 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-30-2009, 09:52 AM
  5. Error 1004: Select method of OptionButton class failed
    By jrubin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-10-2005, 08:51 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