+ Reply to Thread
Results 1 to 2 of 2

macro for userform with one textbox and two optionbutton doesn't work

  1. #1
    Forum Contributor
    Join Date
    02-27-2020
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2013
    Posts
    425

    macro for userform with one textbox and two optionbutton doesn't work

    Hi,

    I am trying to write a code for the "ok" button in a userform. The user fills in one textbox (txtperiode) and clicks on one of two optionbuttons (blnopt88 or blnopt89).
    The entered data should be shown in cells a1 and b1. My code doesn't work. What am i doign wrong?

    Any input is welcome!


    Please Login or Register  to view this content.
    Last edited by MaartenRo; 06-16-2020 at 07:22 AM.

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: macro for userform with one textbox and two optionbutton doesn't work

    See attached file also
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Excel Userform textbox doesn't populate in Mac
    By ahernen in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 01-26-2020, 12:18 AM
  2. [SOLVED] Resize textbox to fit text (Excel's built-in option doesn't work in this case)
    By JayUSA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-26-2018, 10:20 PM
  3. Excel database - Userform doesn't work out
    By Legatoalfuturo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-14-2015, 03:25 PM
  4. [SOLVED] Macro Doesn't Work Through Button, Does Work Through Developer ->Macros Option
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-27-2013, 11:55 AM
  5. [SOLVED] Hide TextBox with OptionButton
    By zplugger in forum Excel General
    Replies: 4
    Last Post: 09-24-2012, 04:56 PM
  6. [SOLVED] Unload Userform doesn't work here - why?
    By rammieib in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-23-2006, 09:55 AM
  7. [SOLVED] How Do I Tab From An OptionButton To A TextBox
    By Minitman in forum Excel General
    Replies: 0
    Last Post: 02-23-2005, 06:06 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