+ Reply to Thread
Results 1 to 2 of 2

Code to paste form data to next available row if cb1 value doesn't exist in column a

  1. #1
    Registered User
    Join Date
    03-22-2013
    Location
    West Sussex
    MS-Off Ver
    Office 365
    Posts
    84

    Code to paste form data to next available row if cb1 value doesn't exist in column a

    Hi there I have attached a spreadsheet with user form and vba which is almost working how I want but could do with some help finishing.

    On sheet 4 I have a userform that looks up combobox1's value and then adds the value of textbox1 to the value of the of the cell in row 2 of the row looked up in combobox1.

    This functions fine how ever if an item is not in the list named 'Wet product waste' it comes with an error and to debug. If the item is not in this list on the next available line I would like that value of combobox1 to be basted in colum a and then the value in textbox 1 to column b.

    Hope this makes sense look forward to replies.
    Attached Files Attached Files
    Last edited by mezza89; 09-09-2014 at 05:56 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,053

    Re: VBA programming

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Programming
    By Gerald Smith in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 06-12-2013, 05:25 AM
  2. vba programming-xl
    By grkchakri in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2012, 11:50 PM
  3. Programming without VBA?
    By jesperhs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2010, 09:44 AM
  4. [SOLVED] New to programming
    By vernalGreens@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2006, 04:50 AM
  5. [SOLVED] DDE Programming
    By Psychopasta in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-01-2005, 03:05 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