+ Reply to Thread
Results 1 to 3 of 3

VBA code to find and delete cell contents based on userform combobox selections

  1. #1
    Registered User
    Join Date
    07-20-2012
    Location
    us
    MS-Off Ver
    Excel 2003
    Posts
    42

    VBA code to find and delete cell contents based on userform combobox selections

    I have 3 Worksheets that are exactly the same in setup to record dates for different events(For this example you can call them sheet1, sheet2 and sheet3). I have a userform that has two comboboxs and a textbox. The first combobox (combobox1) allows the user to select from a list of names that is in column “a” on each work sheet. Combobox 2 allows the user to select the worksheet. The text box allows the user to enter a date.

    What I need is a VBA code that when a user clicks on a delete button it selects the worksheet from combobox 2, finds the row which the name selected in combobox1 is on and finds the date in the textbox within that row and deletes that date only.

    I do not have any idea how to set this code up. Please help

    Thanks

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA code to find and delete cell contents based on userform combobox selections

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    07-20-2012
    Location
    us
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: VBA code to find and delete cell contents based on userform combobox selections

    Thank you! this worked perfectly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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