+ Reply to Thread
Results 1 to 2 of 2

VBA code to copy selected Cells from one sheet to another without changing the format

  1. #1
    Registered User
    Join Date
    03-15-2014
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    1

    Exclamation VBA code to copy selected Cells from one sheet to another without changing the format

    I want the VBA script that copies Values from one sheet to another with same format

    E.g Copy the Range N21:P35 from Sheet1 to Sheet2 to Range B2:D:36
    Copy Range T21:V:35 from Sheet1 to Sheet2 H2:J36
    Copy Range N40:P54 from Sheet1 to Sheet2 B41:D55 and so there are multiple such data and multiple range, Number of cells in Range is same for all.
    However I do not want the unwanted cells to be copied,

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA code to copy selected Cells from one sheet to another without changing the format

    Hi,

    Please clarify.

    You say you want to copy N21:P35 (i.e. 15 rows) to B2:D36 (i.e. 35 rows). How do you expect to fit 15 rows into 35 rows. Ditto with T21:V35.

    How many sets of ranges are there?

    What do you mean by you don't want unwanted cells to be copied. How are you defining 'unwanted'?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. need VBA code to copy Certian Cells from one sheet to another in same format
    By splash_b in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2014, 01:50 AM
  2. copy selected cells to new sheet
    By sad212 in forum Excel General
    Replies: 0
    Last Post: 06-11-2012, 02:45 PM
  3. copy selected cells to new sheet in a row using macro
    By cvsuryam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2011, 04:11 PM
  4. Replies: 2
    Last Post: 08-08-2006, 12:50 PM
  5. Copy format from row above for selected cells
    By al007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-09-2005, 07:50 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