+ Reply to Thread
Results 1 to 6 of 6

Adding Paste Special to a Module

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    Farnborough
    MS-Off Ver
    Office 2010/2007
    Posts
    14

    Adding Paste Special to a Module

    Hello, I have probably worded the title wrong but I will try my best to explain what I want to do below.

    Basically, the macro has been created to move the data from columns I and J to columns F and G after payment has been received so that it goes round the same cycle each time, and it also removed the Y from column H. You should be able to see this in the code below, the macro has been put in a button where you see the "Click" text, however, I need to be able to do this for each row, is there a way I could use one button and choose the row I want to change each time instead of have the 'Click' on each row.

    Or if this isnt possible is there a way so that instead of me manually editing the ranges and copying it down each row, i could place it in a cell and drag it down like I can with formulas.

    I hope you understand what Im trying to say, thanks in advance for any help given. And if you do post any code could you please explain it as I am very new to this thanks.

    Here is an image of the excel spreadsheet:
    \1

    Here is the Macro Code:
    Please Login or Register  to view this content.
    UPADATE: Chippy provided me with the following which is exactly what I am after except one issue, it doesnt perform the paste special and seems to removed the formulae from the 2 columns thanks, I have managed to put this in a module, so I just need this final tweak:

    Quote Originally Posted by Chippy View Post
    Have the button call this routine instead of your code:
    Please Login or Register  to view this content.
    Put the code in a module (not a sheet nor workbook module).
    Update 2: Further edit its not the paste special that is the issue it removes the formulas from columns I and J Here are the before and afters:

    Before Macro Payment Plans.xlsm

    After Macro Payment Plans.xlsm
    Last edited by Purgatory; 06-11-2012 at 04:49 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Adding Paste Special to a Module

    What do you mean "it doesn't perform the paste special"?

    Can you post a workbook with before and after examples?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-11-2012
    Location
    Farnborough
    MS-Off Ver
    Office 2010/2007
    Posts
    14

    Re: Adding Paste Special to a Module

    Actually I realise its not the paste special it removes the formulas in the columns I and J. Here is the before and after.

    After Macro Payment Plans.xlsm

    Before Macro Payment Plans.xlsm

  4. #4
    Registered User
    Join Date
    06-11-2012
    Location
    Farnborough
    MS-Off Ver
    Office 2010/2007
    Posts
    14

    Re: Adding Paste Special to a Module

    Im not sure why it is removing the formulas however.

  5. #5
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Adding Paste Special to a Module

    Why have you started a new thread?

    Please stick to your original thread - http://www.excelforum.com/excel-prog...erent-row.html
    Post responsibly. Search for excelforum.com

  6. #6
    Registered User
    Join Date
    06-11-2012
    Location
    Farnborough
    MS-Off Ver
    Office 2010/2007
    Posts
    14

    Re: Adding Paste Special to a Module

    Sorry I thought because its a new problem with your code. Going back to the old one, unless you have a fix for the new problem.

+ 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