+ Reply to Thread
Results 1 to 4 of 4

VBA: enter data in excel sheet

  1. #1
    Registered User
    Join Date
    12-10-2013
    Location
    Delhi, India
    MS-Off Ver
    Excel 2007
    Posts
    8

    VBA: enter data in excel sheet

    Hi,

    I have a sheet with headers: Name, Salary, DA and Total

    I am looking of a code to enter data in the sheet:

    Enter name by Inputbox
    Enter Salary by input box

    then condition:

    if Salary >=45000 then
    DA = 5000
    if Salary >=35000 then
    DA = 3000
    else
    DA = 1000

    and Total = Salary + DA

    Main condition:

    find next blank cell in sheet and enter data in continuous way....till the user end the flow

    thanks
    Viki

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: VBA: enter data in excel sheet

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    12-10-2013
    Location
    Delhi, India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: VBA: enter data in excel sheet

    Hi davesexcel,

    I have attached a workbook........

    in this i need to enter name and salary by inputbox in next rows and do the automatic calculation for "DA" in "C" column.

    after filling the data in one row, input box with "Name" should appear again and repeat the same step for filling the next row.

    till user want.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-07-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: VBA: enter data in excel sheet

    Hi
    Please find attached workbook with VBA added as follows
    Please Login or Register  to view this content.
    I have added comments to explain what it is doing, if these are too simplistic I apologise

    Ian
    Attached Files Attached Files

+ 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. Enter data in one sheet and keep a running total in separate sheet
    By dvelosky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2013, 01:45 PM
  2. Replies: 4
    Last Post: 11-01-2012, 01:40 PM
  3. Form to enter data into Excel Sheet?
    By Cyberpawz in forum Excel General
    Replies: 4
    Last Post: 08-31-2011, 03:07 PM
  4. Replies: 5
    Last Post: 12-06-2010, 04:39 PM
  5. [SOLVED] Enter data from excel sheet to another excel workbook.
    By Valery2105 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-16-2006, 07:55 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