Flux rss
Search : in
By : Relevance Date Username
Statut : Solved

To prepare Attendence Report with Excel sheet

sneha, on Friday September 5, 2008 09:47:32 PM
Hello,
I will describe what I want to do .

I have 60 residents working in our department. They attend morning report everyday. So I have prepared excel sheet( Named Attendance Table) which has column A1:A60 with names of residents B1:B60 with percentage of attendance for one month.

My job is to prepare Attendance report for each resident.

I have prepared Template for attendance report.


Now I want to run a Macro which will do following things

1. Open a new worksheet from the template in the workbook which has "Attendance Table worksheet"

2. It should bring the data from "Attendance Table" worksheet
a. From First column A1 and put in Name field of template ( new worksheet opened in stage one) ( Always D6)
b. bring data from B1 and put in Percentage field of Template (F10)
c. It should rename the worksheet tab with Data from A1 (i.e. name of the resident)

3. It should repeat the step 2 till it reaches the empty cell

Can anyone help me write the macro.

Thank You
sneha
Configuration: Windows XP
Internet Explorer 6.0
Reply to sneha  Report this message to moderators Go to last message

1


  • This message seems useful, vote!
  • Report this message to moderators
Jimmy, on Saturday September 6, 2008 02:18:38 PM
' Attendance Report Subroutine to
' Open New Worksheet called attendance tqable worksheet
' With data from Attendance Table
' Residents name to D6
' Percentage of attendnace for one month to F10
' Rename sheet to residents name and start again
' For all residents in table

Sub AttendanceReport()
Dim cCell As Object, i As Integer 'Two variables cCell (current Cell) object and i (standard counting integer)
Cells(1, "A").Select 'Ensure that we start each time at the top of the worksheet
Application.ScreenUpdating = False 'Turn of screen updates whilst macro is running
For Each cCell In Range(Cells(1, "A"), Cells(1, "A").End(xlDown)) 'Will run our code through each cell with text
Set NewSheet = Sheets.Add(Type:=xlWorksheet) 'Add new worksheet
NewSheet.Name = "Attendance Table Worksheet" 'rename worksheet
Sheets("Attendance Table Worksheet").Cells(6, "D").Value = cCell.Value 'put residents name is cell D6
Sheets("Attendance Table Worksheet").Cells(10, "F").Value = cCell.Offset(0, 1).Value 'put residence attednance into F10
Sheets("Attendance table worksheet").Name = cCell.Value
Next cCell
End Sub
Reply to Jimmy

7


  • This message seems useful, vote!
  • Report this message to moderators
 Jc, on Monday November 17, 2008 10:03:05 PM
Jimmy your response to the person from this post seem very close to helping me with my issue. We are creating a "list" using excel. I need to create a macro to do the following:

1. Add a new sheet from an original or master( ideally by pressing a button or key combination). The sheet will be named numerically in sequence.
2. Create cell references on a "Project" page refering to the new sheet created.

example. Create sheet "51" ( or the next number in the sequence),
Copy the information in cell '51'!$B$1 to the next available cell in Column B on the "project" sheet.
Copy hte information in cell '51'!$B$3 to the next available cell in column C on the "project" sheet.

and so forth until you get to column G
Reply to Jc

2


  • This message seems useful, vote!
  • Report this message to moderators
gsneha, on Sunday September 7, 2008 04:13:21 PM
Thanks for your immediate reply. I will go back to my computer on monday and check the code thanks a lot ......
Sneha
Reply to gsneha

3


  • This message seems useful, vote!
  • Report this message to moderators
GSNEHA, on Monday September 8, 2008 06:08:48 PM
The code worked like a charm... no problem at all... thanks a lot...
Reply to GSNEHA

6


  • This message seems useful, vote!
  • Report this message to moderators
Lalit.123, on Friday November 7, 2008 02:44:03 AM
Hi Sneha i am send the Attandence Excel sheet with this attachment so pls keep it this sheet and prepare attandence reports in own circle








Thanks & Regards
Lalit Rawat
Reply to Lalit.123

Results for

Getting data from one sheet Hello, I am bit week in excel & need help in preparing a report. This report will be a repeation work based on the data what is updated. I have a sheet where in there are some data, I need to get the details of the rows in the next sheet. in the next... en.kioskea.net/forum/affich-26599-getting-data-from-one-sheet
Changin format of date in excel Hello, I have an excel sheet which has lots of cells in a column with the date format as - day month date time year & I wish to convert that to dd/mm/yy. How can I do that, pls help. eg - I need to convert "sat Jun 29 00:00:00 PST 1996" to "29/06/96".... en.kioskea.net/forum/affich-28689-changin-format-of-date-in-excel
Excel (+ & -) Buttons Hello guys, It's very urgent, I want to creat an excel sheet to be used in Elections. I want to use (+ & -) buttons to add the number of votes to each candidate. These buttons will show the result of the votes. Your immediate response is highly... en.kioskea.net/forum/affich-24744-excel-buttons

Results for

Excel tips : How to insert date In an Excel cellExcel tips : How to insert date In an Excel cell Below are some tips on how to insert date and time in an excel cell for a specific purpose:- To insert current date, press “CTRLâ€+ “;†in the chosen cell. To insert current... en.kioskea.net/faq/sujet-313-excel-tips-how-to-insert-date-in-an-excel-cell
How to count number of words in MS Words sheet!How to count number of words in MS Words sheet! It is quite simple to count the number of words in a Microsoft word sheet. This tip might be very useful for example, if you wish to make a presentation on Microsoft word for an approximate number... en.kioskea.net/faq/sujet-354-how-to-count-number-of-words-in-ms-words-sheet

Results for

Excel with macrosHello, how to equal the two excel sheets column fiends with using macro for Ex:my excelsheet1 had "date" column and my excelsheet2 had "date" column both sheets have a same "date" columns how to equal these two sheets with using macros please past... en.kioskea.net/forum/affich-25045-excel-with-macros
Macro Help in ExcelHello, I want to delete entered data in an Excel sheet and not the entire workbook by creating a macro control button. How do you do that? Thanks JR en.kioskea.net/forum/affich-25836-macro-help-in-excel
HOW TO COPY THE DATA FROM EXCEL BY USING MACRHello, My query is, How to copy Data from excel sheet in to new excel file by useing Macro. Regards, Kris en.kioskea.net/forum/affich-31122-how-to-copy-the-data-from-excel-by-using-macr

Results for

Download Condo ManagerCondo Manager is an accounting software for PC designed for personal use and for associations. In a few clicks, users can evaluate the costs, print deposit slips, account statements, invoices and prepare a balance sheet. This demo version in English... en.kioskea.net/telecharger/telecharger-1116-condo-manager

Results for

E-Business - Data warehouse and datamart The different data for the intelligence information system are stored intermediately in a place called data warehouse. The data warehouse is therefore the only place where all enterprise data are consolidated. The creator of the Data Warehouse... en.kioskea.net/entreprise/datawarehouse-datamart.php3
Spreadsheets - The Excel Interface Microsoft Excel is the spreadsheet in the Microsoft Office office suite. To start it, simply click on the appropriate icon in the Start menu (in Windows) or click on an Excel file (that has an .xls file extension). A Excel document is called a file... en.kioskea.net/tableur/tabinterface.php3
UNIX system - The shell The command interpreter is the interface between the user and the operating system, hence its name "shell". The shell therefore acts as an intermediary between the operating system and the user using command lines entered by the latter. Its role... en.kioskea.net/unix/unix-shell.php3