+ Reply to Thread
Results 1 to 10 of 10

Transfer macro

  1. #1
    Registered User
    Join Date
    05-29-2009
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2007
    Posts
    78

    Transfer macro

    Hi,
    I have attached a credit control spreadsheet. i was wondering if i could write a macro that transfers all invoice lines that contain a capital P in column T from the Outstanding tab to the next blank row in the paid tab. i have tried a few macros but none of them have worked!
    Attached Files Attached Files

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Transfer macro

    Please Login or Register  to view this content.
    Something like that work for ya?
    Just create a new macro and drop that entire code in there.
    tested it briefly, I believe it does what you want it to.

    mew!
    Last edited by mewingkitty; 05-29-2009 at 09:09 AM.
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Registered User
    Join Date
    05-29-2009
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: Transfer macro

    Hi it doesnt like the y=y+1

  4. #4
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Transfer macro

    I don't like soggy cheerios.

    Could you perchance be a touch more specific? In terms of which section of y = y + 1, and also the error which it's giving you.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Transfer macro

    oohhhh, nvm. I see what I did.

    Got a <> in there instead of a =

    Please Login or Register  to view this content.
    You got a "Subscript out of range" error I'm guessing? that y = y + 1 was looping to infinity and beyond, if I'm not mistaken.

    mew.

  6. #6
    Registered User
    Join Date
    05-29-2009
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: Transfer macro

    Hi
    its run time error 6 on the first y=y+1 it is not giving a specific warning!

    thanks

  7. #7
    Registered User
    Join Date
    05-29-2009
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: Transfer macro

    Its working now thanks very much ive been pulling my hair out for days over that!!

  8. #8
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Transfer macro

    bump.
    Answered the same time that you did, wanted to make sure you knew it had been responded to.

    And I just needed another reason to mew.

    mew!

  9. #9
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Transfer macro

    np,
    take care.

  10. #10
    Registered User
    Join Date
    05-29-2009
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2007
    Posts
    78

    Talking Re: Transfer macro

    Hi
    sorry to bother you again but i have just thought of something else that will make the macro work better:

    can it be modified so that any macros that are transfered from outstanding to paid are deleted from the outstanding tab & the same amount of new rows added to the outstanding tab as were deleted?

    There is a total on row 41 of the paid tab. Can it be set so that it doesnt paste the rows over the top of the total?

    Thanks

+ 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