+ Reply to Thread
Results 1 to 3 of 3

Copy Results of ComboBox from 1 Worksheet to Another

  1. #1
    Registered User
    Join Date
    04-14-2011
    Location
    Bay Area, CA
    MS-Off Ver
    Excel 2007
    Posts
    32

    Copy Results of ComboBox from 1 Worksheet to Another

    Howdy,

    I have a macro that makes copies of a worksheet based on user input. Then, once the user types a Part Number into a specific cell & clicks "Save" - the macro also saves that workbook with the filename of the Part Number (for instance, if the user types "ABCD" into the Part Number cell & clicks "Save" then the macro saves the file as ABCD.xlsm).

    That all works as desired.

    I also have a macro whereby if the user changes the Part Number and a few other cells (including a combobox selection), then clicks "Save" again - the macro loops over all worksheets & copies the data which has changed from the 1st Worksheet to all other worksheets. (For instance, if the user changes the Part Number to "ABCDE" - then clicks "Save" - the macro copies the "ABCDE" to all other worksheets, as well as saves the file as ABCDE.xlsm

    The code for that macro is here:

    Please Login or Register  to view this content.
    That macro works as desired as well - EXCEPT that the last commands (the copying of the Combox2) does NOT work.

    How can I get the code to also copy the results of the combobox, such that if the user changes the selection in the combobox on the 1st sheet, the selection gets copied & updated on all other sheets?

    Thanks in Advance,
    Rob

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Copy Results of ComboBox from 1 Worksheet to Another

    A ComboBox is not a range. It is an object and as such needs to be treated that way. There are two types of comboboxes so the answer to your question could be either one:

    ActiveX:
    Please Login or Register  to view this content.
    FormControl:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-14-2011
    Location
    Bay Area, CA
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Copy Results of ComboBox from 1 Worksheet to Another

    stnkynts,

    Thank you for the explanation & the code... but I (sheepishly) have a stupid question... how do I know which ComboBox I have: ActiveX or FormControl?

    Thanks,
    Rob

+ 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. Search Worksheet Using ComboBox & Show Results in Different Worksheet
    By MIFF3436 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2012, 11:42 AM
  2. Using VBA to Filter then copy results to another worksheet
    By Chris_J in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2010, 02:46 PM
  3. ComboBox Macro to copy data from other worksheet
    By Session101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2009, 12:39 PM
  4. Copy and Paste to Worksheet using Combobox (ActiveX)
    By okriskao in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-23-2009, 09:23 AM
  5. copy and paste cells to a different worksheet according to IF results
    By faze in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2006, 10:45 AM

Tags for this Thread

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