Results 1 to 3 of 3

Thread: data Transpose in VBA loop, choose the part I want to import!

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    1
    Rep Power
    0

    data Transpose in VBA loop, choose the part I want to import!

    Hello I am working for my school project that I need to follow,

    Step 1. Copy from original rep this year row (26:27)
    Paste Transpose to data sheet > > Column range E9:F39
    Paste Transpose to End report sheet > > Column range B11:C41

    Step 2: Copy from original rep this year row (36:37)
    Paste Transpose to data sheet > > Column range P9:O39
    Paste Transpose to End report sheet > > Column range N11:O41

    Step 3: Copy from original rep this year row (46:47)
    Paste Transpose to data sheet > > Column range AA9:AB39
    Paste Transpose to End report sheet > > Column range Z11:AA41

    The question part is how to match the data into certain column since I don't need all of the data from the original report. Please help, thank you so so so much!
    I hope this explains. Thanks.

    Attachment Book1.xlsm

  2. #2
    Senior Member LalitPandey87's Avatar
    Join Date
    Sep 2011
    Posts
    222
    Rep Power
    14
    You want to copy and transpose data or need to match data.
    May be example with the output would be good.

  3. #3
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    You could write

    Code:
    Worksheets("Data").Range("E9:F39").Value = Application.Transpose(Worksheets("Original Rep This Year").Range("B26:AF27").Value)
    By the way, if it's a school project, shouldn't you be doing this yourself?
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

Similar Threads

  1. Transpose A Column Of Data In To A Table
    By gunjan.nasit in forum Excel Help
    Replies: 4
    Last Post: 05-20-2013, 12:33 AM
  2. Import Data From Multiple Workbooks To Another
    By Jorrg1 in forum Excel Help
    Replies: 2
    Last Post: 05-13-2013, 05:00 PM
  3. Replies: 7
    Last Post: 05-08-2013, 07:12 PM
  4. Import data from website
    By Excelfun in forum Excel Help
    Replies: 3
    Last Post: 04-20-2012, 08:17 PM
  5. Transpose data into Rows
    By vikash200418 in forum Excel Help
    Replies: 2
    Last Post: 04-10-2012, 11:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •