+ Reply to Thread
Results 1 to 9 of 9

Button to copy range to new worksheet

Hybrid View

nickhunt Button to copy range to new... 10-16-2013, 06:00 PM
klonbeck Re: Button to copy range to... 10-16-2013, 06:36 PM
nickhunt Re: Button to copy range to... 10-17-2013, 02:25 AM
Fotis1991 Re: Button to copy range to... 10-17-2013, 03:56 AM
nickhunt Re: Button to copy range to... 10-17-2013, 05:26 AM
Fotis1991 Re: Button to copy range to... 10-17-2013, 05:34 AM
nickhunt Re: Button to copy range to... 10-17-2013, 05:59 AM
Fotis1991 Re: Button to copy range to... 10-17-2013, 06:09 AM
jcaynes Re: Button to copy range to... 10-17-2013, 01:51 PM
  1. #1
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Button to copy range to new worksheet

    Sub transposeData()
        
        Dim rngValues As Range: Set rngValues = Sheets("Sheet1").Range("a1:f6")
        Dim ValueCell As Range
        For Each ValueCell In rngValues
            Sheets("Sheet2").Cells(Rows.Count, ValueCell.Column).End(xlUp).Offset(1, 0).Value = ValueCell.Value
        Next ValueCell
        Range("A1:F6").Select
        Selection.ClearContents
        Range("A1").Select
    End Sub
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  2. #2
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Devon, England
    MS-Off Ver
    Excel 2003
    Posts
    128

    Re: Button to copy range to new worksheet

    Thank you, thats great, just one thing, is it ok to delete sheet 3?

+ 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. Creating a copy button to copy range of cells to a different sheet
    By 5degrees in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-15-2013, 12:21 PM
  2. Macro Button to copy data from one worksheet to second worksheet with criteria
    By vortex1fire in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2013, 06:24 PM
  3. button to copy worksheet with formulas referencing previous worksheet
    By Alexelius in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-28-2011, 09:40 AM
  4. copy a command button to new worksheet
    By elaine in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-22-2006, 11:40 AM
  5. [SOLVED] how to copy option button from one worksheet to another
    By sam in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2006, 09:40 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