Closed Thread
Results 1 to 2 of 2

copying data's from sheet 1 to sheet6

  1. #1
    Registered User
    Join Date
    10-29-2014
    Location
    india
    MS-Off Ver
    2010
    Posts
    5

    Post copying data's from sheet 1 to sheet6

    Hi,

    Please check my below code which is working for current sheet . But i need the same logic which should copy from sheet 1 to sheet6 please help me in solving this .

    Sub Get_Status()
    Dim rng As Range
    Dim iCol As Integer
    Dim lastCell As Integer

    Set rng = ActiveCell.CurrentRegion
    lastCell = rng.Columns(1).Rows.Count + 1
    For iCol = 4 To rng.Columns.Count
    Range(Cells(2, iCol), Cells(rng.Columns(iCol).Rows.Count, iCol)).Copy
    ActiveSheet.Paste Destination:=Cells(lastCell, 4)
    lastCell = lastCell + rng.Columns(iCol).Rows.Count
    Next iCol
    End Sub

  2. #2
    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: copying data's from sheet 1 to sheet6

    Welcome(again) to the forum. Pls take some minutes to read forum rules before you post again, because(in this case)

    Unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    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.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. copying data's from sheet 1 to sheet6
    By msksanthu in forum Excel General
    Replies: 4
    Last Post: 10-29-2014, 04:52 AM
  2. Replies: 0
    Last Post: 03-04-2013, 03:25 PM
  3. [SOLVED] Code from tigeravatar ,Copying data from one sheet and copying it
    By DanielRay in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 12-07-2012, 03:07 PM
  4. [SOLVED] Macro for copying data from one column in sheet 2 based on two criterias in sheet 1
    By baardings in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2012, 01:50 PM
  5. Copying a template sheet and putting those multiple sheets data into a summary sheet
    By John Wolfe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2011, 06:29 PM

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