+ Reply to Thread
Results 1 to 4 of 4

Copy and Paste with Offset

  1. #1
    Registered User
    Join Date
    06-13-2012
    Location
    Singapore
    MS-Off Ver
    Excel
    Posts
    39

    Copy and Paste with Offset

    Hi everyone! What code can be used to
    1) insert a column 1 column position to the left of a specific cell (say a named range)
    2) and then copy and paste the column values 12 columns away and paste it into the column that was inserted?
    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Copy and Paste with Offset

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-13-2012
    Location
    Singapore
    MS-Off Ver
    Excel
    Posts
    39

    Re: Copy and Paste with Offset

    Hi Walruseggman, thanks for the code.

    I've tried it but it gives a "type mismatch" error. I'm not sure if the named ranges have to be defined as columns or will a single cell do? I'm defining the named ranges using Ctrl-F3.

    Also to confirm that the code inserts the values into the new column rather than the column of the named range?

  4. #4
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Copy and Paste with Offset

    This. Replace "NamedRange" with the name of your range, and yes, it does need to be in quotes.

    Please Login or Register  to view this content.

+ 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. Copy/paste with offset
    By t3h in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2015, 10:41 PM
  2. [SOLVED] Range offset copy and paste
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2014, 02:17 PM
  3. Need to copy,paste, offset and repeat
    By lilynb in forum Excel General
    Replies: 2
    Last Post: 08-05-2014, 10:55 PM
  4. Copy from Array in ActiveWorkbook to ThisWorkbook; Transpose copy, Offset Paste
    By sbradley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-14-2013, 05:17 PM
  5. [SOLVED] copy and paste with offset
    By kevcar40 in forum Excel General
    Replies: 3
    Last Post: 10-10-2005, 11:05 AM

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