Use this :

Sub Data_Formatting()

Dim rw As Long
For rw = 17 To ActiveSheet.UsedRange.Rows.Count Step 6
    With Worksheets("Required").Range("B" & Rows.Count).End(xlUp)
        .Offset(1, 0).Value = Range("D" & rw).Value
        .Offset(1, 1).Value = Range("D" & rw).Offset(3).Value
        .Offset(1, 2).Value = Range("F" & rw).Value
        .Offset(1, 3).Value = Range("M" & rw).Value
        .Offset(1, 4).Value = Range("O" & rw).Offset(3).Value
        .Offset(1, 5).Value = Range("R" & rw).Value
        .Offset(1, 6).Value = Range("T" & rw).Offset(3).Value
        .Offset(1, 7).Value = Range("V" & rw).Value
        .Offset(1, 8).Value = Range("Z" & rw).Offset(3).Value
        .Offset(1, 9).Value = Range("AB" & rw).Value
        .Offset(1, 10).Value = Range("AD" & rw).Offset(3).Value
        .Offset(1, 11).Value = Range("AF" & rw).Value
        .Offset(1, 12).Value = Range("AK" & rw).Offset(2).Value
        .Offset(1, 13).Value = Range("AK" & rw).Value
    End With
Next rw

End Sub




*Pankaj Sharma                                                  *

*MIS Analyst*

*Greater Kailash-1, New Delhi*

*Email   *
*p <sharmapankaj...@yahoo.com>ankaj123...@gmail.com <ankaj123...@gmail.com>*
*Skype**   pankaj.sharma_pj*




---------- Forwarded message ----------
From: vikas khen <vikk...@gmail.com>
Date: Thu, Dec 24, 2015 at 7:37 AM
Subject: $$Excel-Macros$$ Need Help on attached sheet
To: excel-macros@googlegroups.com


Dear Team,

Please find the attached excel sheet in which the raw data is sheet 1 and
the required output is in Sheet 2.

It would be very helpful if you help me on this.


Regards


-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
will not get quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security
measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE : Don't ever post confidential data in a workbook. Forum owners and
members are not responsible for any loss.
---
You received this message because you are subscribed to the Google Groups
"MS EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Attachment: WeeklyBooking (Solved).xlsm
Description: application/vnd.ms-excel.sheet.macroenabled.12

Reply via email to