+ Reply to Thread
Results 1 to 2 of 2

Selecting blank cells next to a column with data

  1. #1
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    194

    Selecting blank cells next to a column with data

    I can think of a lot of ways to do this. What I am looking for is a way to do it that will work in a macro.

    Column A, B, and C all contain information in every cell down to about ~8500 or so. I need to put a formula in column D that goes down to the last row with data. Right now I go to the first cell in column C and then control+shift+down to go to the end. Then I select the empty cell D. From there it control+shift+up to go back to the top. Then I use F5 to fill the blanks with the same formula. I've tried to replicate that action in a macro without success. Since the number of rows vary from import to import absolute references won't work. But even using relative references it still selects a discrete cell at the end.

    Any ideas welcomed. Thanks.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,450

    Re: Selecting blank cells next to a column with data

    Untested but ...

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. [SOLVED] Selecting all data in specific columns without selecting adjacent column.
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2014, 02:20 AM
  2. Selecting all data in specific columns without selecting adjacent column.
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2014, 03:50 PM
  3. [SOLVED] Selecting Non-Contiguous Cells Containing Data in a Column
    By snapfade in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-25-2014, 05:26 PM
  4. Replies: 4
    Last Post: 01-31-2012, 01:08 PM
  5. Selecting cells based on data in another column
    By seifer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-22-2011, 07:43 AM
  6. Selecting Cells in a column that only have data
    By capnhud in forum Excel General
    Replies: 2
    Last Post: 06-04-2010, 08:48 AM
  7. Selecting Non Blank Cells in a Column and inserting a row
    By salkovsg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2007, 03:54 PM
  8. Selecting none blank rows in a column
    By Colonel Hogan in forum Excel General
    Replies: 0
    Last Post: 01-10-2005, 10:15 AM

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