+ Reply to Thread
Results 1 to 7 of 7

Find next empty row in a range (add data via userform)

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Post Find next empty row in a range (add data via userform)

    Hi. I'm trying to write some VBA to find the next empty row in a range and then add data via a user form. I need to be able to select Range via combobox and then type text in textbox below. After i click a button, the text is entered under the selected range. I have multiple ranges organized in columns.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Find next empty row in a range (add data via userform)

    If you want to find the next available row in column A for example - you can use this
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644
    Are you listing named ranges?
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    10-24-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Find next empty row in a range (add data via userform)

    Yes the Ranges are named. e.g. Fruits, Vegetables etc..

  5. #5
    Registered User
    Join Date
    10-24-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Find next empty row in a range (add data via userform)

    How would you write a code, so the user could select column A in combobox and the textbox would relate to that selection

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644
    What exactly do you have in the combobox?

  7. #7
    Registered User
    Join Date
    10-24-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Post Re: Find next empty row in a range (add data via userform)

    Combobox lists one Range "Class". There are 14 Classes. They will show up in combobox. My worksheet has 15 columns, Column A is my Class Range, and the rest 14 are the Classes. They are all defined as different ranges. I must be able to select preferred Class from combobox and enter "Category" under that Class in my worksheet. How do i do link my textbox to combobox selection

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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