+ Reply to Thread
Results 1 to 7 of 7

Macro to run on entire data on the sheet

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Macro to run on entire data on the sheet

    Dear Team,

    I have made the macro. But it runs only one time and it is stopping. I am very sure that we have to use some decision making tool but not able to do and succeed. Please find the attached file and below code.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Macro to run on entire data on the sheet

    You have not specified any loop, hence its doing it only once.

    Maybe if you explain what you are trying to accomplish, it will make it easier for us to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Macro to run on entire data on the sheet

    Hi,
    Thanks for reply. In the data sheet, Eg for row:It has to copy the data between B599 to I599 after that it has to paste at AH598:AO598. Later, Entire 599 row has to be deleted.Like that it has to do for 601,603....where ever data corrupted.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Macro to run on entire data on the sheet

    You mean every alternate row should be copied one row higher in columns AH:AO?

  5. #5
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Macro to run on entire data on the sheet

    Yes u are right but only where data is crushed and gone to next line. till 597 rows, data came from apps correct. After that one row been added and AH598:AO598 Cells moved to next line at 599. this way, some cells will be moved to next line.
    Last edited by theprincesunil; 12-05-2012 at 12:55 PM.

  6. #6
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Macro to run on entire data on the sheet

    For easy reference,
    I intially write the below code
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Macro to run on entire data on the sheet

    Try this code - I have specified that it should start from row 599. You can change that if your real data has some other row with the misplaced info -
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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