+ Reply to Thread
Results 1 to 3 of 3

I can't modify code to emulate contents of ComboBox??????????

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    I can't modify code to emulate contents of ComboBox??????????

    Hi All,

    I have this code:

    Private Sub ComboBox29_Change()
    
     If Me.ComboBox29.Value = "DPARM001" Then
        Me.ComboBox30.Value = "DPARM001"
        End If
        
        End Sub


    However, rather than have a case or an If arrangement, which will lead to high maintenance, is there a method by which ComboBox30 will emulate what is input into ComboBox29?

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: I can't modify code to emulate contents of ComboBox??????????

    A simple assignment should suffice
    Private Sub ComboBox29_Change()
    
        Me.ComboBox30.Value = Me.ComboBox29.Value
    
    End Sub
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: I can't modify code to emulate contents of ComboBox??????????

    Great Thank You, wish I'd realised this earlier Lol
    Last edited by bralew; 11-07-2016 at 09:21 AM.

+ 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. Replies: 8
    Last Post: 04-04-2016, 02:19 PM
  2. [SOLVED] Modify contents of cells
    By L.LEE in forum Excel General
    Replies: 9
    Last Post: 03-28-2016, 09:37 AM
  3. Populate combobox dependent on contents of previous combobox
    By ed1967 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-08-2014, 11:40 AM
  4. VBA code to find and delete cell contents based on userform combobox selections
    By anfdrew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2013, 04:13 PM
  5. Modify code to drag cell contents across a row range
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-20-2010, 04:34 PM
  6. Modify code VBA to copy contents only, not formula
    By Mayweed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2010, 09:36 AM
  7. Modify code to hide rows based on the contents in a cell.
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-18-2009, 09:07 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