+ Reply to Thread
Results 1 to 9 of 9

i have created a payslip of employees but it is not changing values if click a button

  1. #1
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    i have created a payslip of employees but it is not changing values if click a button

    i have created a payslip of employees in Excel using vba(macros) and i have created button called [payslip] it should create for evry single employee in a single sheet but it is not changing values if click a button


    i ahve assigned salaries for every employee in a worksheet when i click the button it should display the output of the every employee

    if i change the salary(40000 to 45000) in main sheet if i click the button it is not changing salary(4000) in the output sheet
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: i have created a payslip of employees but it is not changing values if click a button

    Can you attach data/example to see?
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: i have created a payslip of employees but it is not changing values if click a button

    This is the file please let me know it is not working properly
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: i have created a payslip of employees but it is not changing values if click a button

    I dont think you are taking the salary in 40000 is from the template not the data.

    Change the 40000 in your template to SHOW_ERROR and then run and they will show SHOW_ERROR for all salaries

  5. #5
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: i have created a payslip of employees but it is not changing values if click a button

    if i change in the main employee sheet

    1st employee as got 45000 something if i change that 15000 there itself then if i click the create payslip button it should change inthe output sheet but it is not

  6. #6
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: i have created a payslip of employees but it is not changing values if click a button

    Yes, because you havent coded it to. Do what i said, then you'll see.

  7. #7
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: i have created a payslip of employees but it is not changing values if click a button

    if i change the value 40000 to SHOW_ERROR it is showing like this #value
    Last edited by baig123; 05-23-2014 at 07:00 AM. Reason: editing

  8. #8
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: i have created a payslip of employees but it is not changing values if click a button

    Yes, but in the payslips generated, will show.

    So in the template i put in PLEASE_SHOW

    TEMPLATE

    PF No. DSNHP0939937000/95
    Name Of Employee: ESIC No.Nil
    Designation:
    Earnings Payable Deductions Amount
    Total Days: Basic PLEASE SHOW P.F
    Days Worked: D.A E.S.I
    Absent: H.R.A 20000 Advance Sal. Deduction
    C.L: C.C.A Loan Instalment

    PAYSLIPS



    08/05/2012 PF No. DSNHP0939937000/95
    Name Of Employee: AJAY KUMAR ESIC No.Nil
    Designation:
    Earnings Payable Deductions Amount
    Total Days: 30 Basic PLEASE SHOW P.F 780
    Days Worked: 30 D.A E.S.I 166
    Absent: 0 H.R.A 20000 Advance Sal. Deduction
    C.L: 0 C.C.A Loan Instalment
    E.L: 0 Conveyance Allowance: 800 Other Deduction



    Your code doesnt populate the basic salary.

  9. #9
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: i have created a payslip of employees but it is not changing values if click a button

    how would i write a code to generate a salary payslips for employees using this (edit salary in sheet1) if i click it should generate a payslip(OutPut)



    please help me out to write a code
    Last edited by baig123; 05-23-2014 at 08:17 AM. Reason: paragraph

+ 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. [SOLVED] click on a color button and after button click it will color entire row of cell you click
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-11-2014, 06:06 PM
  2. VBA Macro to input values into web form and then click button and get results back
    By Benisato in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2013, 10:15 AM
  3. [SOLVED] Changing font attributes on click of button
    By stuartadair in forum Excel General
    Replies: 8
    Last Post: 06-07-2012, 07:47 AM
  4. Replies: 5
    Last Post: 11-10-2011, 10:07 PM
  5. Click events on buttons created at runtime only work on the last button created
    By Treacle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2010, 05:44 AM

Tags for this Thread

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