+ Reply to Thread
Results 1 to 5 of 5

Copy corresponding Cell data into blank cells after applying Auto Filter in a Macro

  1. #1
    Registered User
    Join Date
    05-15-2013
    Location
    Glasgow
    MS-Off Ver
    Excel 2010
    Posts
    56

    Copy corresponding Cell data into blank cells after applying Auto Filter in a Macro

    Hi,

    I've applied an auto filter using a macro that currently filters my data on blank cells and then fills the blank cells using todays date. This works great.

    I now want to run the same macro, only instead of inserting todays date in the cell thats blank I want to insert the corresponding value from another row / cell.

    The number of rows in the spreadsheet(s) will always vary.
    The Column where the data is to be copied from is "D".
    and the Column being filtered on is currently "H"

    Please Login or Register  to view this content.
    I've played about with offset and recorded a macro but for the life of me can't get it to work.... any ideas?

    Cheers

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Copy corresponding Cell data into blank cells after applying Auto Filter in a Macro

    How about:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-15-2013
    Location
    Glasgow
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Copy corresponding Cell data into blank cells after applying Auto Filter in a Macro

    Cheers yudlugar.... that worked a treat

  4. #4
    Registered User
    Join Date
    05-15-2013
    Location
    Glasgow
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Copy corresponding Cell data into blank cells after applying Auto Filter in a Macro

    okay - so i might have been a bit over eager in marking this one as solved.

    It works fine on one sheet - I have 2 issues with that i cant seem to solve..

    1) I'm looking for a wee error handler that will let it bypass a sheet if there are no blank cells - seems not to like this
    2) I'm going to run this as a call procedure on multiple sheets so need to be able to do that... is there an easy way to add in appropriate worksheet references for unlimited worksheets?

    Hope i'm making sense..

    Here's the code I'm running just now so you can see where I'm going with this if it helps...

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Copy corresponding Cell data into blank cells after applying Auto Filter in a Macro

    Please Login or Register  to view this content.

+ 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