+ Reply to Thread
Results 1 to 7 of 7

Can anyone just explain VBA of this Sheet posted by watersev(expert)

  1. #1
    Registered User
    Join Date
    08-11-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    6

    Can anyone just explain VBA of this Sheet posted by watersev(expert)

    Please any of can explain this in detail it would be of great help.

    Thank you,
    John.
    Attached Files Attached Files
    Last edited by john321; 08-11-2013 at 01:02 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Can anyone just explain VBA of this Sheet posted by watersev(expert)

    As mentioned in my PM reply to you should not PM members. Am I the only one to have received a PM?

    Your post is timed at 5:03 PM local and yet your PM which says you are getting frustrated that there has been no response is timed only 23 minutes later. There is no service level agreement here, we all give freely of our own time. You do yourself no favours by being so impatient. Please note.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-11-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Can anyone just explain VBA of this Sheet posted by watersev(expert)

    ok agreed

    ...................

  4. #4
    Forum Contributor
    Join Date
    08-11-2012
    Location
    bengalur
    MS-Off Ver
    Excel 2003, 2007
    Posts
    152

    Re: Can anyone just explain VBA of this Sheet posted by watersev(expert)

    Hi John

    Give me some time I look into the code and explain you how code works

    __________________________________________________________________________________________________________________________________________
    if you think some one has helped, please click * to add to reputation.


    “I have not failed. I've just found 10,000 ways that won't work.”
    ― Thomas A. Edison

  5. #5
    Registered User
    Join Date
    08-11-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Can anyone just explain VBA of this Sheet posted by watersev(expert)

    hello,

    don't mind saying but I am still trying to understand this code but an't able to pls help.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Can anyone just explain VBA of this Sheet posted by watersev(expert)

    Perhaps the originator of the code could explain.

    There are usually several ways of achieving Excel solutions. I always use standard Excel functionality first wherever it's possible and then only resort to macros where they are needed to do things that only they can do.

    In this case I would simply have created a master payslip that contained VLOOKUPS in all the cells that looks up the or details in the salary sheet.

    I would then have written a simple looping macro that worked down the list of salary numbers on the salary sheet between the range of numbers wanted, and for each row copied the master payslip to a row 11 rows below the last one (adding two blank rows every third iteration) and changed the SLNO.

    The code would be no more than a handful of rows.

    A second one line macro could erase all payslip records ready for the next week.

  7. #7
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Can anyone just explain VBA of this Sheet posted by watersev(expert)

    hi John, the code creates all salary slips in array, pastes them to the sheet and adds formating. It's an option to make it, there are as in most cases other ways to achieve the same result. One of them is shown in the above post by Richard Buttrey

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need formula expert - Extract data from sheet 1 to sheet 2
    By stewarg66 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-25-2013, 02:23 AM
  2. [SOLVED] Help from expert needed with excel sheet please !
    By will2k in forum Excel General
    Replies: 8
    Last Post: 09-30-2012, 09:01 AM
  3. SERIOUS issues, Watersev?
    By MitchS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2011, 02:55 PM
  4. Posted on more than one Forum >>Copying Data From One Sheet To Another
    By Ben103 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-18-2007, 11:40 AM

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