+ Reply to Thread
Results 1 to 7 of 7

Select first empty cell

  1. #1
    Registered User
    Join Date
    12-17-2009
    Location
    Indianapolis, IN
    MS-Off Ver
    Excel 2003
    Posts
    16

    Select first empty cell

    Hi,

    I'm new here, and need some help!

    I've been tasked with creating a spreadsheet at work to help give customers quotes on price plans (cell phone store!)

    Anyway, I'm stumbling through this and learning macros and what have you, with the little bit of VB knowledge I have, I'm stuck.

    I need to put a formula in my macro, that will go down my "A" column and select the first empy cell, and then input some data. The data part I have down, I just need to know what the code would be to select (or highlight) the first empty cell in my A column.

    Thanks in advance!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Select first empty cell

    Give this a go...

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-17-2009
    Location
    Indianapolis, IN
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Select first empty cell

    Thanks!

    I'll give this a go when I'm at work again tomorrow!

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Select first empty cell

    You don't actually need to select the cell, or even the sheet, in VBA to do this. Try this code
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    12-17-2009
    Location
    Indianapolis, IN
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Select first empty cell

    I tried the first solution, and I'm still somewhat of a noob, so I wasnt exactly sure how to input it. Still working on it tho, with the 2nd solution offered. Thanks! I'll let you know how it goes!

  6. #6
    Registered User
    Join Date
    12-17-2009
    Location
    Indianapolis, IN
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Select first empty cell

    Ok, I've changed "Hello World, to what I want it to say, and I think I can complete this, if I just know how to do the same thing to column B. which value would i change to do this to column B with the 2nd Solution... This one

    Please Login or Register  to view this content.

    Scratch that! Just figured it out by adding 2 to the row counts..duh!

    Thanks!

    Mark this as SOLVED!

    Appreciate it guys, I'll be back I'm sure!
    Last edited by logan_fernandes; 12-18-2009 at 12:11 PM. Reason: Figured it Out!!

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Select first empty cell

    The 1 in Cells(rw,1) refers to Column A, so changing that to 2 would add the text to B

+ 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