+ Reply to Thread
Results 1 to 4 of 4

Simple copy paste vba

  1. #1
    Forum Contributor
    Join Date
    01-21-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    409

    Simple copy paste vba

    Hi this is probably really simple but I have vba like this:

    Please Login or Register  to view this content.
    Which copies e33:ar135 from one sheet to another. However say I want to copy more than one range so E33:AR135 and E200:AR202 AND E300:AR301 for example how do copy and pastespecial each of the ranges in one go rather than writing out lots of copy and paste lines. Also if it could do it without physically going to the sheet it's copying that would be great.

    Many thanks

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Simple copy paste vba

    Maybe like this

    Please Login or Register  to view this content.
    Teach me Excel VBA

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Simple copy paste vba

    Maybe this:

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Contributor
    Join Date
    01-21-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    409

    Re: Simple copy paste vba

    Hi many thanks, both of those formula's work. The issue I have now is that if I change the range to say:

    Please Login or Register  to view this content.
    When it pastes the I33:K135 it doesn't paste them in the right place, both sheets are identical so I'd like the range to be pasted into their respective areas i.e Rota week 4 I33:K135 would paste into Rota I33:K135 and so on. Sorry i should of explained myself better, that's my fault. The idea behind this is I have protected cells on sheet "Rota" which is stopping pasting certain columns in.

    Thanks

+ 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] What's a simple copy paste macro for this?
    By manzier in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-29-2014, 07:02 PM
  2. [SOLVED] Simple Copy/Paste Issue
    By jsmilke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2014, 12:37 PM
  3. What should be a simple copy and paste but is not
    By steve777888 in forum Excel General
    Replies: 11
    Last Post: 12-28-2012, 03:42 PM
  4. [SOLVED] Simple copy and paste macro- Paste special help needed.
    By hernancrespo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2012, 07:02 AM
  5. Simple copy paste problem
    By richardeallen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2008, 12:27 PM
  6. Simple Copy and Paste
    By wmorrison49 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-18-2007, 09:41 AM
  7. Simple Copy and Paste
    By Michael in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2005, 06:06 AM

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