Hi Thank u very much.I need some change in the code.
here I want to count the number of cells deleted in column B here 25 cells In column C delete 50 cells In column D delete 75 cells In column E delete 100 cells. Please refer the attached file Regards Rajesh Kainikkara On 3/13/12, dguillett1 <dguille...@gmail.com> wrote: > Should do it > > Sub CopyColumnsToTableSAS() > Dim i As Integer > Dim fr As Long > Dim lr As Long > 'col A > Cells(2, 1).Resize(Cells(2, 1).End(xlDown).Row).Copy Cells(2, "g") > 'other columns > For i = 2 To 5 > fr = Cells(2, i).End(xlDown).Row > lr = Cells(Rows.Count, i).End(xlUp).Row > Cells(fr, i).Resize(lr).Copy Cells(2, i + 6) > Next i > End Sub > > > Don Guillett > Microsoft MVP Excel > SalesAid Software > dguille...@gmail.com > -----Original Message----- > From: Rajesh K R > Sent: Tuesday, March 13, 2012 8:50 AM > To: excel-macros > Subject: $$Excel-Macros$$ Macro for format table > > Hi experts > Find the attached file,and help me to create a macro to format a table > from the data given. > My idea to solve this > > select column A:E, & paste in G1 > Select blank cells in column B ,here B2:B26 & Delete them > Repeat the sale in next columns > > Regards > > Rajesh Kainikkara > > -- > FORUM RULES (986+ members already BANNED for violation) > > 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) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > > -- > FORUM RULES (986+ members already BANNED for violation) > > 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) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > -- FORUM RULES (986+ members already BANNED for violation) 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) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com
TallY.xlsm
Description: application/vnd.ms-excel.sheet.macroenabled.12