+ Reply to Thread
Results 1 to 5 of 5

Paste and Change Macro

  1. #1
    Registered User
    Join Date
    08-28-2008
    Location
    Tulsa
    Posts
    41

    Paste and Change Macro

    I have to copy / paste and change a few thousand items and i want to get a macro to do this. I have recorded what i am doing 10 times as an example. I am increasing the value by one when i make the replacement.

    I need a macro to paste five rows from A to U and then change the value by one.


    Thank you in advance


    Please Login or Register  to view this content.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Paste and Change Macro

    Do you have a sample file that you can upload? One that you use with the code above?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    08-28-2008
    Location
    Tulsa
    Posts
    41

    Re: Paste and Change Macro

    Example - Copy.xlsmIf you look at the Page Two Sheet you will see that the first five rows are links to the Page One Sheet Row 1
    I then copied the first five rows and pasted them to row 6 to 10. I then change the cell reference by using the replace option example ='Page One'!$A$1 becomes ='Page One'!$A$2 and so forth.

    What im trying to do is copy the first five rows the paste the with the cell reference changed a few hundred times

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Paste and Change Macro

    Do you need the cell references in page 2, or will just the values suffice?

  5. #5
    Registered User
    Join Date
    08-28-2008
    Location
    Tulsa
    Posts
    41

    Re: Paste and Change Macro

    I need the cell references as the values on page one will change as i am making a template.

+ 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