+ Reply to Thread
Results 1 to 18 of 18

endxlup failure because of table of formulas?

  1. #1
    Registered User
    Join Date
    12-09-2011
    Location
    Eureka, CA
    MS-Off Ver
    Excel 2010
    Posts
    22

    endxlup failure because of table of formulas?

    Can anyone tell me why the code below copies an entire table of blank rows instead of only those with data? And more importantly, how do i fix it? The tables i am trying to copy are a set amount of rows and each cell in the table has formula. I've also attached the full workbook if that helps more, SchedulesNew.xlsmThanks in advance guys

    Please Login or Register  to view this content.
    I've asked this question on MrExcel but haven't been able to solve the issue yet but here is some code provided by a couple of chaps from that forum...thanks JMonty and lancerj017 for the efforts

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: endxlup failure because of table of formulas?

    Try this,
    Please Login or Register  to view this content.
    Last edited by JapanDave; 06-29-2012 at 11:17 PM. Reason: edit code
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Registered User
    Join Date
    12-09-2011
    Location
    Eureka, CA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: endxlup failure because of table of formulas?

    hey japandave, im not sure why but nothng happened when i ran that....except the screen blinked...so i guess it did something....but i can't tell what. Any idea?

  4. #4
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: endxlup failure because of table of formulas?

    I just checked and all your tables have formulas. The above code only counts non formulas and it should have been like this anyways(I gave you the wrong code)
    Please Login or Register  to view this content.
    Hold on while I do this another way.

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,697

    Re: endxlup failure because of table of formulas?


  6. #6
    Registered User
    Join Date
    12-09-2011
    Location
    Eureka, CA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: endxlup failure because of table of formulas?

    hey japandave, i tried that but still no results...can u make it only ignore blank result formula's? because the data that needs to be copied is also from formula....thanks again

  7. #7
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: endxlup failure because of table of formulas?

    No it won't work if there are formulas in the column. I have had a few meetings at work over the last couple of hours and I have not had time to do the code. But as I said in my last post this will needed to be done differently than what I originally did. Hold on just a bit longer untl I get some free time.

  8. #8
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: endxlup failure because of table of formulas?

    There is probably a better way to do this but this should work.
    Please Login or Register  to view this content.
    Last edited by JapanDave; 06-30-2012 at 02:06 AM.

  9. #9
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: endxlup failure because of table of formulas?

    Hi ShannonHowell,

    Try this:

    Please Login or Register  to view this content.
    I hope you've also mentioned on MrExcel that your thread has also been cross-posted here.

    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  10. #10
    Registered User
    Join Date
    12-09-2011
    Location
    Eureka, CA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: endxlup failure because of table of formulas?

    Robert that is phenomenal, worked like a charm. So I'm trying to edit it to pick up tables across the "Tables" sheet. i thought i would just copy and past it and edit the letters....and that worked the first time, but the 2nd time it isn't bringing in the 3rd table like i expected. Is there an easier way to make this get all 15 tables other than to copy and paste the awesome code you've provided already and edit the letters? Here is the code as i've edited it
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    12-09-2011
    Location
    Eureka, CA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: endxlup failure because of table of formulas?

    Hey Robert, again thank you for the code....I'm having a problem while editing this though....and im not sure where I am going wrong but now that i've added most of the extra loops i have noticed that it is returning alot of duplicate results.....multiple copies of one record. i was going to add the code that i have so far but its saying that my post is 10,000 characters too long lol...thanks again everyone for the help

  12. #12
    Registered User
    Join Date
    12-09-2011
    Location
    Eureka, CA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: endxlup failure because of table of formulas?

    I just realized i was saying Robert instead of Trebor76....Trebor76 it is your code that has worked...sorry for the mistake, thanks

  13. #13
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: endxlup failure because of table of formulas?

    Hi Shannon,

    Must say I'm a little confused - you've marked the thread as solved but reading through your posts I'm not sure if it is or not

    If not what isn't happening that should be?

    Robert (aka Trebor76)

  14. #14
    Registered User
    Join Date
    12-09-2011
    Location
    Eureka, CA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: endxlup failure because of table of formulas?

    hey trebor76, The problem i am having is that there are multiple instances of the same record being copied. It doesn't happen on the first table that I am moving or even the second or third....but after about the fourth table for some reason it begins making multiple copies of one data set. I'm not sure why as I don't completely understand the code you've provided. Is there a way to edit the code so that I don't have to copy and edit it 15 times to pick up all 15 tables.....the tables are all the same as the first and separated by one column. I marked the thread as solved because your code does everything i asked for in the post.....i always just assumed i would know enough to edit what someone provided to make it work for all 15 tables....I marked as solved before i found the duplication problem. Thanks again Robert

  15. #15
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: endxlup failure because of table of formulas?

    See how this goes:

    Please Login or Register  to view this content.
    Robert

  16. #16
    Registered User
    Join Date
    12-09-2011
    Location
    Eureka, CA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: endxlup failure because of table of formulas?

    hi Trebor76, thanks for the reply again, i haven't had a spare moment for this in a couple of days, but I try out your code as soon as i get home tonight and post how it went

  17. #17
    Registered User
    Join Date
    12-09-2011
    Location
    Eureka, CA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: endxlup failure because of table of formulas?

    YAY!!! Robert you have done it. That works marvelously, thank you so much for your efforts, i can't tell you how useful this workbook will be for me and my office mates. again, YAY and THANK YOU!!!

  18. #18
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: endxlup failure because of table of formulas?

    YAY!!! Robert you have done it. That works marvelously, thank you so much for your efforts, i can't tell you how useful this workbook will be for me and my office mates. again, YAY and THANK YOU!!!
    Thanks for the feedback and you're welcome

+ 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