+ Reply to Thread
Results 1 to 2 of 2

Adding a value to first empty cell in column

Hybrid View

  1. #1
    Registered User
    Join Date
    01-23-2009
    Location
    Newark, DE
    MS-Off Ver
    Excel 2002
    Posts
    30

    Adding a value to first empty cell in column

    I have a form with a combobox that has a value in it. I then run a Sub to determine if that value is already present in Column A of a Worksheet. This works fine (or so it appears).

    If the value is already present in that Column then the Sub ends.

    If the value is not present...then I need some way to determine the first empty cell in the column (there are no empty ones between the first and last filled cells). At that point I need to copy the value from the combobox into that cell.

    I've tried several of the tricks I've learned the last few weeks...but no luck yet.

    Tips or suggestions would be great.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Adding a value to first empty cell in column

    This piece of code will select the first empty cell in column A, adjust what you want to happen from there:
    Range("A65535").End(xlUp).Offset(1, 0).Select
    If problems persist, post your existing code and the desired value (where it's coming from).
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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