+ Reply to Thread
Results 1 to 4 of 4

trying to adjust VBA that Autofills values down through empty cells until next filled cell

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    LA
    MS-Off Ver
    Excel For Mac 2011
    Posts
    99

    trying to adjust VBA that Autofills values down through empty cells until next filled cell

    Hi everyone ,

    I'm hoping to adjust this VBA that Auto-fills values down through empty cells until next data filled cell to run on multiple columns..

    Right now , it works great (as you'll see if you test the macro in the worksheet) , but it only works with column "A". So currently the way I use it is I paste the data onto this macro enabled 'helper' file (attached below) , then I run the macro, then copy and past the new data back into the actual excel file I'm working on. And then I do it for the next column etc..

    Basically, I'm trying to find a better workflow, so I'd like to get this macro to work on at least the first few columns, OR ideally , 20 or 30 columns (not sure if that's even possible thought?) . Any help would be greatly appreciated.

    xlsm worksheet with current macro:
    _forum example_VBA_Autofill cell values down through empty cells until next data-filled cell.xlsm

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: trying to adjust VBA that Autofills values down through empty cells until next filled

    Hi Syncguy,

    Just Change the ending Column (see the red code)

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    02-07-2012
    Location
    LA
    MS-Off Ver
    Excel For Mac 2011
    Posts
    99

    Re: trying to adjust VBA that Autofills values down through empty cells until next filled

    thanks xladept , but I just tried changing it to "A1:K" and ran it , and it filled in all blank areas with "#REF!"

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: trying to adjust VBA that Autofills values down through empty cells until next filled

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

+ 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. Count filled and empty cells from the first filled cell in a row
    By mdaoust in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-01-2014, 01:23 PM
  2. Need to find empty filled cells in a column and copy to the empty cell below
    By Grahamfeeley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-30-2014, 10:09 AM
  3. [SOLVED] How to merge empty with filled cells without deleting?
    By kingi in forum Excel General
    Replies: 2
    Last Post: 09-27-2013, 03:20 AM
  4. How to keep an averaging cell empty until all the input cells are filled
    By troyer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-29-2013, 11:02 AM
  5. Empty Cells needed to be filled using formula
    By ericohansen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-06-2013, 05:15 PM
  6. display filled vs empty cells in a range
    By dr mint in forum Excel General
    Replies: 6
    Last Post: 08-04-2009, 10:38 PM
  7. Copy Data From Filled to Empty Cells
    By Sheikh Saadi in forum Excel General
    Replies: 0
    Last Post: 11-10-2005, 03:30 PM

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