I have an Excel 2003 spreadsheet with pupil test scores and would like to automate the total. Example attached.
There are N tabs (one for each class; there is one or more class in each year group) of raw data; all the scores are numerical but some entries may be blank. After entering the raw data I would like to press a button on each “Total” tab to collate the data.
Total A presents the data in class order; the column marked Class should just say A1, A2, B, etc. If there are multiple classes in a year group then they should appear in order, that is, A1 followed by A2 followed by B, so on.
Total B presents all the data in ascending surname order.
This is one of several questions I need to ask to perform a larger task. I want to initiate VBA code using a push button. What code do I need in the VBA to do this and rules behind using it.
I am wanting to create a push button function with a query attched that will allow the user to input certain criteria with the end result in sorting the column containing the criteria.
I have attached a sample of my form:
My desire is the user will have the ablity to push the button and a input box will appear and they will be able to enter the data to search for. And the column with sort showing only the information required.
What I am having difficulties with is creating the pop-up input box. A simple macro with a sort or filter will not work as the data criteria is not the same everytime.
I need is to be able to have a button show up on an Excel spreadsheet that you push to update the DAY and TIME to today. But, I need it to stay in a protected field so that it doesn't accidentally get changed by other users who open it up. And we save these for retention purposes, so if I open it a couple days later, I need the date to stay as the date I edited it on.
I have master data in sheet1 with 4 headings (EmpNo.; Name; Grade; Status) and i put a push button beside it. what i want to happen is that, if i push the button, all data with a value of "Inactive" in sheet1 will be COPIED to sheet2 with the heading but only the EmpNo and Name will be transfered to sheet2.
I've created several buttons that link to macros that I have put in the first row of my sheet. I've freezed the panes so they won't move so you can see the buttons form wherever you are so you can use them. However, I'd like to describe what the buttons do somewhere so it's easy for users to use them...
I was thinking the easiest way to do this would be when you hover over the button it shows text in a a little pop up window...like if you hover over an image sometimes there is text that appears.
Is there VBA code that I can write to make that happen? How would I then tie it to a button? To create the buttons under developer I just did Insert, Form Control, Button...
I don't have any problem regrading the project but my Problem starts when i tried to make my tool more user friendly
i tried to put comments on conditional cells in form of images but i also want to put these Image POPUPS on buttone also what i desired is when ever mose arrow hover over a button a image pop should appear.
I have a User Form which i want to use in such a way that editing the worksheet directly is not disabled while the userform is running. I would also like to use the right button mouse menu(cut, cpy,paste) while i am using the user form. I am using two Monitors with my PC and i want to work with User Form on one monitor being able to edit worksheet without having to close my User Form.
I inherited a price list workbook made up of multiple worksheets (some 30 pages). Each year the new prices (including % increase) are calculated by a formula in the row below each price (100's of rows and formulae).
Thus: C1 might say £10 D1 says =C1+(C1*2.5%) £10.25 (it actually does some rounding too) etc
It may seem odd having both rows but MD can see the before and after. The new price 10.25 must however be manually copied to C1 to avoid circular referencing and then D1 row hidden. Very laborious to repeat 100's of times.
Is there a way of first copying the entire workbook for the new year (easy) then by means of a macro looping through each formula cell of all sheets in workbook 1 and pushing the result to the new workbook and to the correct sheet and then to the same location but to the cell above. e.g. pushing £10.25 from D1 of sheet 1 workbook 1 to C1 of sheet 1 workbook 2 to become the new price for the coming year?
is there a way to launch a macro when your mouse is over a specific cell or a specific range of cells ? The idea behind is to update a chart based on the cell value, in case a name, with its associated values
Is it possible to display a name on a chart that is not the X or Y value?
I've been sent this macro which displays the school name on a chart when the mouse is on the data point - its all well and good but on the graph I am working on, the X and Y value are both values and I want the school name to come up as well.
Private Sub Chart_MouseMove(ByVal Button As Long, ByVal Shift As Long, ByVal x As Long, ByVal y As Long) 'macro that gets chart to show user details of a point on the chart when the mouse is moved over it Dim ElementID As Long, Arg1 As Long, Arg2 As Long Dim myX, myY As Variant
With ActiveChart .GetChartElement x, y, ElementID, Arg1, Arg2
If ElementID = xlSeries Then 'checks to see which part of the chart the mouse is over
my right mouse-clicker doesn't work in excel anymore. something with macros happened I guess.
has anybody an idea to activate it again?? it's just in the workfield, to change worksheets-colours and stuff at the worksheet-registry it works as usual.
On my worksheet, i want to execute a macro to calculate and display some informations when the mouse is positioned over certains cells. I look around but did not found how to do it.
I want the information to be displayed above that cell and disapeared when mouse pointer moved away.
I'm trying to do a few things actually. I am somewhat a newb at programming, although I do understand how C++ and the coding works within Excel. To me, it's like the English language...knowing all of the vocabulary and formatting it right is important. If I don't know the vocabulary, I don't know what options I have.
This tool is being used in the call center I work in. It is to help eliminate repititious information used to notate accounts. I have attached a picture of what the tool looks like so you can have a better idea of what I'm working with. Here are a list of things I'm trying to do which I have searched and not found answers to:
1. I am trying to use a middle mouse scroll to scroll through validation list. This list information is located on a different locked tab. Basically, I have a few rows where a drop down selection can be made and it would be easier to scroll rather than manually moving the slider within the validation list.
2. As you can see, this "tool" an employee and I have created has many buttons. What I would like to do is to be able to click a button on the right and have it "stack" text within a single cell. In other words, if I click the button once, the text may be entered into the "actions taken" cell. If I click another button, I can have the option (or maybe a little "+" next to the button) to add this button's information to the end of the information already entered within the "actions taken" box. I've tried recording and using the keyboard and selecting "end" and then having the text added, but it didn't work. I've seen "loop" VBA code, but I don't want something to repeat, I want it to stack in the cell when clicked manually.
I'm sure there is a way to make the tool much better using VBA code and not use Excel, but I don't have an extensive knowledge of Excel to do something like that. I'm a very fast learner and understand how the coding works, so if you have an idea which may help, and you understand what I'm trying to do here, please provide your .02.
Basically, it's used so the Customer's name and phone number are entered manually, and then just about everything else is automated by the use of the buttons on the right. If I could get the 2 above options to work, it'd be perfect. I just figured out I could eliminate screen flicker and hide the macros working by using:
Context: I have a spreadsheet that contains a list of employee names and their certifications. I want to be able to assign a button to each employee in column B with a macro that is able to zip files from a folder that contains that employees name.
The following code assigns buttons to each employee in column B. At the moment the code I have is able to assign the macro "Zip" to each button.
[Code] .....
Now, this Zip macro is able to zip the file for the employee "Anthony Tran". However I need it to be able to recognise which employee's button I've clicked and search the same files as above except with that employees name instead of "Anthony Tran".
If it makes things easier, the code for creating buttons for each employee is able to name that button as the employees name that it represents.
This is probably really straight forward but cant see why it happens, the following macro works fine when called by a button created by the form toolbar but doesnt when called by a command button, get the runtime error 1004, "select method of range class failed"
1. user enters a date 2. user selects from dropdown list 3. user enters numer via text box 4. user pushes button to complete data transfer
Example info: 1. July 12, 2010 2. clothes 3. 112.27
Formula or method to complete the following actions...
Enter "112.27" in column "clothes" on row "12" on the sheet "July". he method has to be sound for changing columns, rows and sheets.
I've got the calendar and interface done, but I cannot figure out ow to get the data to the specific cell on the sheet. his seems to require "pushing" data rather than "pulling"...
I'm looking for something that will be able to push or pull data from a workbook (named "Personen - test.xls" = persons) to an other workbook (named "Personen per maand.xls" = persons/month). In attached documents i tried to make clear (sorry, it's in dutch) what i would like to do. In English; the marked data in "Personen - test.xls" should automatically be shown in the marked area in "Personen per maand.xls". I think the biggest problem is the fact that "Personen per maand.xls" is a standard-document which should be filled -time after time- with many different data's from several "Personen - test.xls" documents. These documents are all named different, the data is always given in the same way. So in my opinion i should make something where i can tell excell which document to use and something i can tell where to put the data. But i really don't know how to do this...
I was trying to build a macro which will push - copy and paste (but only values) the last raw down for one line. I tried to use existing answer for copy, paste and pushing down rows find on this forum, but raws a just moved without pasting the values.
Context: I have a spreadsheet that contains a list of employee names and their certifications. I want to be able to assign a button to each employee in column B with a macro that is able to zip files from a folder that contains that employees name.
The following code assigns buttons to each employee in column B. At the moment the code I have is able to assign the macro "Zip" to each button.
VB:
[COLOR=#333333]Dim Btn As Button[/COLOR] [COLOR=#333333]Dim rng As Range[/COLOR] [COLOR=#333333]For I = 2 To RowCount + 1[/COLOR] [COLOR=#333333]With Worksheets("Sheet1")[/COLOR] [COLOR=#333333]Set rng = .Range("B" & I)[/COLOR] [COLOR=#333333]Set Btn = .Buttons.Add(rng.Left, rng.Top, rng.Width, rng.Height)[/COLOR]
[Code]....
The following code is my Zip macro:
VB:
[COLOR=#333333]Sub Zip()[/COLOR] [COLOR=#333333]Dim strDate As String, SavePath As String, sFName As String[/COLOR] [COLOR=#333333]Dim oApp As Object, iCtr As Long, I As Integer[/COLOR] [COLOR=#333333]Dim vArr, FileNameZip[/COLOR] [COLOR=#333333]Dim FName() As Variant[/COLOR]
[Code]...
Now, this Zip macro is able to zip the file for the employee "Anthony Tran". However I need it to be able to recognise which employee's button I've clicked and search the same files as above except with that employees name instead of "Anthony Tran".
If it makes things easier, the code for creating buttons for each employee is able to name that button as the employees name that it represents.
I am having trouble using the tab key to navigate to the next cell. Whenever I push tab I get jumped to the edge of the page instead of the next cell. This excel program is on a new computer I got at work and I have never had this problem before.