+ Reply to Thread
Results 1 to 2 of 2

Using option buttons to allocate data in one of two places! Help!

  1. #1
    Registered User
    Join Date
    06-17-2014
    Location
    Iowa
    MS-Off Ver
    2010
    Posts
    17

    Using option buttons to allocate data in one of two places! Help!

    Never worked option buttons so I would like to see how it is coded.

    This macro is called customer. It is for adding a new customer to the list. I have a macro going already and it does a basic job. However, what I would like to do is add two option buttons (already added) and code them to put the data in one spot or another depending which option button is activated. I have never used option buttons so I'm not sure how this would be coded.

    The data is on the customer list sheet.

    When entering a new customer with the customer macro I would like to be able to press residential and have it go to that column. Or press Commercial and have it go to that column.

    Any help would be greatly appreciated and I would add reputation for it!

    Here is the latest version of the workbook.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Using option buttons to allocate data in one of two places! Help!

    slight amendment to your Lastrow code
    see attached file

    Please Login or Register  to view this content.
    only thing to be careful of your offset with merged cells
    if you have lines in there already you wont notice it
    will only effect your first line
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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. UserForm Data Entry with Option Buttons
    By jimmyex23 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-26-2013, 02:04 PM
  2. [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
  3. [SOLVED] option buttons for data table
    By alee001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2012, 10:09 AM
  4. Having option buttons fill in data conditionally
    By cowboy713 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-10-2010, 05:59 PM
  5. [SOLVED] Gathering Data from Option Buttons
    By Susan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-11-2006, 03:10 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