+ Reply to Thread
Results 1 to 12 of 12

Two Totals Pasting to Wrong Column - The rest are pasting correctly

  1. #1
    Registered User
    Join Date
    11-03-2004
    Posts
    75

    Question Two Totals Pasting to Wrong Column - The rest are pasting correctly

    Had to change the order of how the user would do things - and in the process something got jacked up that's causing the top 2 line items in a Weekly Subtotals Column to jump out into columns to the right that they don't belong within..
    All the rest are pasting into the correct column..

    Have run that last module --what seems like a hundred times, tweaking things to try to fix it - but no luck..
    Test File attached showing the issue..
    Thank you
    Attached Files Attached Files

  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: Two Totals Pasting to Wrong Column - The rest are pasting correctly

    It ran like this:

    Please Login or Register  to view this content.
    *Is it what you want?
    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
    11-03-2004
    Posts
    75

    Re: Two Totals Pasting to Wrong Column - The rest are pasting correctly

    No, sadly, all of the weekly totals (sum) should be appearing in col H as shown in the sample attachment

    When I ran the above - it has wiped out all totals (both in col H) and the 2 problematic totals that were appearing out in col I and J

  4. #4
    Registered User
    Join Date
    11-03-2004
    Posts
    75

    Question Re: Two Totals Pasting to Wrong Column - The rest are pasting correctly

    The above solution suggestion did not work -- hoping someone might see where the problem lies?

  5. #5
    Registered User
    Join Date
    11-03-2004
    Posts
    75

    Re: Two Totals Pasting to Wrong Column - The rest are pasting correctly

    cross posting today after waiting a couple days for insight
    http://www.msofficeforums.com/word-v...tml#post124924

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

    Re: Two Totals Pasting to Wrong Column - The rest are pasting correctly

    Yeah, what I've been trying hasn't yet cut it

  7. #7
    Registered User
    Join Date
    11-03-2004
    Posts
    75

    Re: Two Totals Pasting to Wrong Column - The rest are pasting correctly

    awe -- THANK YOU for taking a stab at it --- I've tried changing some things around a bit but with no luck -- =-(

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

    Re: Two Totals Pasting to Wrong Column - The rest are pasting correctly

    I didn't clean it up but this now seems to work!

    Please Login or Register  to view this content.
    The problem was with using LastR columns count which was 9 for the false flag and just 7 for the rest of the rows - as you can see I changed that to 8
    Last edited by xladept; 02-20-2018 at 02:44 PM.

  9. #9
    Registered User
    Join Date
    11-03-2004
    Posts
    75

    Question Re: Two Totals Pasting to Wrong Column - The rest are pasting correctly

    Well, xladept - it's a bit closer - but something funky is still going on -
    The 2 totals that were jumping out to the right are back in H (how'd you get them back over?), however, there's an additional total in col H in H9 that should not be,
    The grand total that should be at the base of col H is sitting in I (not calculating b/c it's looking at I)
    And not sure where the new column header "To Be Deleted" came from (maybe in your testing?) - but it shouldn't be there (that might be what you mean by cleanup)
    (attaching the result file of the newest code you just provided - for an online look)

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

    Re: Two Totals Pasting to Wrong Column - The rest are pasting correctly

    Still not cleaned up but "closer"

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    11-03-2004
    Posts
    75

    Re: Two Totals Pasting to Wrong Column - The rest are pasting correctly

    xlsadept: looks like whatever you changed this time around fixed the issue!
    Thanks so much! I'll be sure to click reputation stars for you

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

    Re: Two Totals Pasting to Wrong Column - The rest are pasting correctly

    Wow - that took a while!

    You're welcome and thanks for the rep!

    The dates from the source sheet we're populating in H - so, we put the formulas in I and deleted H at the end

    (along with other things)

+ 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] VBA Summary button not working correctly when pasting data
    By Roampie in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-15-2017, 09:53 AM
  2. [SOLVED] Pasting formula correctly with blank spaces involved
    By coach.32 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-01-2015, 08:04 PM
  3. [SOLVED] copying and pasting sub-totals
    By nygwnj in forum Excel General
    Replies: 2
    Last Post: 03-07-2015, 11:47 PM
  4. [SOLVED] Pasting equal to cells so that they repeat correctly
    By annieflanz in forum Excel General
    Replies: 2
    Last Post: 12-11-2012, 09:38 PM
  5. Macros for pasting and making totals
    By sandbach in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-26-2010, 02:27 PM
  6. Memo Field Not pasting correctly in XL
    By jojotherider in forum Excel General
    Replies: 1
    Last Post: 10-17-2005, 04:05 PM
  7. Not Pasting Correctly
    By Larry G. in forum Excel General
    Replies: 3
    Last Post: 07-06-2005, 04:05 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