I have this piece of code that shows a popup box when the excel spreadsheet loads up.
Private Sub Workbook_Open()
MsgBox "This spreadsheet can design both single-leaf and cavity walls." _
& Chr(13) & Chr(13) & "If only a single-leaf wall is to be designed:" _
& Chr(13) & "Deselect the cavity wall option and complete only the outer leaf input sheet." _
& Chr(13) & Chr(13) & "If a cavity wall is to be designed:" _
& Chr(13) & "Select the cavity wall option and complete both input sheets." _
& Chr(13) & Chr(13) & "All designs satisfy criteria within BS:5628-1:1992 Structural Use Of Unreinforced Masonry", , _
"Spreadsheet Information"
End Sub
Is it possible to place a tick box in the message box that says, "show this message again on startup", then if the user unticks the box the message is not shown again and if the box is left ticked the box will load up again on startup of the workbook????
I was reading your Tick Cell Upon Selection article and it works great. I'm just wondering if there is a way to modify it so that they can only select one of the cells in a row.
For example, in this spreadsheet, the cells I have marked for "tick upon selection" are N8-Q8. In this worksheet, though, I only want the user to be able to select one of the four options. Is there a way to format the code so that they either cannot select another cell until they have deselected the first one, or the first one unchecks itself and the new click ticks that cell?
Example: Person selects N8. Person then selects P8. Can it not allow P8 to be selected (and give a warning message) or can it uncheck N8 when P8 is checked?
Some sent me a large spreadsheet with random rows throughout the spreadsheet highlighted in diffierent colors. I have a module that will sort the spread sheet by Color - however it doesn't work on this spreadsheet because - for whatever reason - every cell starts with a tick mark.
I tried to do a replace all - and excel just told me I was crazy.
I even tried going through and manually removing the tick marks - still no luck.
If I export the sheet in to txt and then re-import it I will loose all the highlights...
I'm creating a form, that will contain 20-30 tickboxes. Each of these tickboxes will refer to a certain row on a seperate sheet. And it will either hide/un-hide depending on if it is tick/un-ticked.
How can I in the macro know which of the tick boxes that was ticked?
I have created a Time Sheet for calculating the work hours of employees. There are various criteria which play a role in how work hours and wages earned are calculated (ex. time, over time, LOA, Travel time, stat holidays etc etc.)
In a certain cell I have placed a tick / check box which the user can tick to indicate that that particular day is a statutory holiday. The tick creates a True / False answer in another Linked Cell.
Based on the True / False result I have a formula which, using the IF function with multiple conditions whether the result is True or False, will calculate the hours worked for Regular, Time and Half and Double Time.
The Formula itself works but when I add the condition based on the check box - example: IF(c37=TRUE,...,if(...,if(...,IF(c37=FALSE,...,if(...,if(... and so on, only the TRUE option works. As soon as the check box is "unticked" I get the result "false".
I hope that all makes sense.
If it helps this is my formula... where C37 is the linked cell for the checkbox.
Just put condition formatting on a cell that looks up to Windings tick & X Now with the listing option in condition formatting you get the option of a dropdown on the cell you are populating.. great but this is still in the worksheets standard font so shows as an O or P not a tick or X.. any way round this?
I would like to achieve the affect where if you click on the cell its contents will change. For example, if you click on it once, a checkmark will appear, but if you click on it twice and x and if you click on it a third time a - will be displayed. I was thinking along the lines of a marco for the spreadsheet, which would run an if loop to check what was currently in the cell then change accordingly. Is there a command that would allow me to do this, or would is there an even easier way? side note how would I even display a checkmark of square root sign, through vba? This is what I have, It was working but now it does nothing and I cant remember what I tinkered with.
Private Sub Worksheet_SelectionChange(ByVal Target As Range) Application.EnableEvents = False If Target.Column = 6 Then If Cells(Target.Row, 6) = "" Or Cells(Target.Row, 6) = "-" Then Cells(Target.Row, 6).Formula = "" Application.EnableEvents = True ElseIf Cells(Target.Row, 6) = "?" Then Cells(Target.Row, 6).Formula = "x" Application.EnableEvents = True Else Cells(Target.Row, 6).Formula = "-" Application.EnableEvents = True End If
I have set up a spread sheet which uses tick boxes and I have calculated it all up so that the percentage of ticks ticked is displayed in a cell etc. and when I link that data to a bar chart it works perfectly. .e.g as I tick the boxes the bar chart increases
BUT when I try to do the exact same thing with a pie chart it doesn't work.
I have 4 checkboxes: a, b, c, and d. if all three check box a,b, and c is checked, then check box d is checked. if any of a, b, or c is unchecked, then check box d is unchecked.
They have 50 members and if 35 of them turn up to the meeting I want to be able to print out a 35 certificates each with a name on it from the people that attended
Almost like a mail merge from the full list of 50 members but only print out for the people that attended >?
I was going to tick or enter a 1 if the person turned up and then have it pull all the names with a 1 next to it ?
My situation so far i have a rather large program in vba that accesses a site (confidential info im afriad will post snippets though) logs in navigates through a rabbit warren of pages using different types div's form's a href's etc and finally get to one page before where i need to extract information from!!
This webpage has one large table then nested tables within for each entry.
I need to find a way to search the data cells within the nested tables find a specific displayed value then if required tick the checkbox (which has dynamically generated id's names etc) in that row then move on to the next table and do the same.
All I need to do is establish that one row has the data value i need and tick the check box that correlates (which is in the same row).
I have 6 column charts that are supposed to be identical. There are 12 pair of columns per chart. Some chart's pair are centered over the tick and some pair are to the right of the tick and I can't figure out how to make them all the same.
I am trying to use WINGDING FOnts on some forms. I am not having full success with them. Sometimes they seem to work, other times not at all, and then sometimes if the code is less that 127. I am programically creating the forms from a worksheet. The code used to create is as follows:
Sub MakeUserForm() Dim TempForm As Object Dim NewButton As MSForms.commandbutton Dim NewLabel As MSForms.Label Dim NewTextBox As MSForms.TextBox Dim NewOptionButton As MSForms.OptionButton Dim NewCheckBox As MSForms.CheckBox Dim x As Integer Dim Line As Integer Dim MyScript(4) As String Dim BC As String 'This is to stop screen flashing while creating form Application.VBE.MainWindow.Visible = False Set TempForm = ThisWorkbook.VBProject.VBComponents.Add(3) 'Create the User Form With TempForm..............
I tried recording a macro (Absolutely nothing is recorded as far as the ticking and unticking goes) and searched for code but came up empty. What VBA code would I use to untick such a TickBox (TickBox1, Sheet22)? I'd conversely also like to know what code to use to Re-tick it.
It is impossible to adjust the interval between tick marks when displaying an horizontal axis with 2 categories (years and weeks). The following steps do not change the space between the tick marks.
I received a spreadsheet form containing some checkboxes that I need to tick. The problem is I dont know how can I tick/show the check mark on the checkbox. everytime I double click it, macro vb screen appears.
I have a named Formula which works but it will only recalculate when I click the green tick in the Formula Bar. How can I get it to work without needing to do that?
I have attached a spreadsheet which, when you enter a matching value in the vehicle column, the cell that matches the vehicle name in both instances (column and row) is ticked. Think I am wanting to use a worksheet_calculate function but cannot figure out how to write the appropriate lookup in VBA. I do not want a formula in the cell.
Is there any way in which I can map the tick mark labels on either the x-axis or the y-axis to different values other than the ones that are being plotted for.
For example, lets say the data is:
1 5 2 6 3 10 4 15 5 8
I want to plot these in a chart but instead of displaying 1,2,3,4,5 on the x-axis, I want to display a different column, say,
5 7 9 11 13
The answer is not as simple as plotting the required x-values with the y-values. I have just used a simplistic example but the thing I am trying to do has dependencies involved so I cannot simply plot the chart with the required column.
But please allow me to explain, if I have numbers in Cell F9 I want image to be displayed as (X <---- which it means wrong) on G9 and message to be appear in H9 says only words are allowed. In case, cell value are words; I want it to show image <---- which it means right) and the message to be say correct. And if cell is empty I want it to show image (!) and the cell beside it the message should say (Please Fill up).
I want to apply this to words instead of numbers as well.
I am using Jon Peltier's worksheet_change event code to try and automate chart axes.
Private Sub Worksheet_Change(ByVal Target As Range) Select Case Target.Address Case "$AG$5" ActiveSheet.ChartObjects("Chart 2").Chart.Axes(xlCategory) _ .MaximumScale = Target.Value Case "$B$3" ActiveSheet.ChartObjects("Chart 2").Chart.Axes(xlCategory) _ .MinimumScale = Target.Value Case "$AG$7" ActiveSheet.ChartObjects("Chart 2").Chart.Axes(xlCategory) _ .MajorUnit = Target.Value Case "$L$3" ActiveSheet.ChartObjects("Chart 2").Chart.Axes(xlValue) _ .MaximumScale = Target.Value Case "$N$3" ActiveSheet.ChartObjects("Chart 2").Chart.Axes(xlValue) _ .MinimumScale = Target.Value Case "$AH$7" ActiveSheet.ChartObjects("Chart 2").Chart.Axes(xlValue) _ .MajorUnit = Target.Value Case Else End Select End Sub
However, I have some of the cells setup as formulas....but worksheet_change apparently only updates values when manually changed.
every week i send out a pivot table to different project co-ordinators and would like a way of having simple option button so that they can have the data by "hours" or "costs" and can use tick boxes for the row fields they want to show, for example, "profession", "workstage"," name","cost rate". The page field will always be "Project" and the Column Field will always be "Period" and " Date"
I then want the pivot table to change automatically to their choices. I am pretty basic with VBA so may need explanantions too. It would save me sending out 10 versions of a pivot table all feeding off the same data! They could actually do something themselves! (i know they could drag the fileds they want into the areas they need them but trust me when i say they are not that advanced, they are good at ticking!!)
I am trying to use excel to score a test. I want to tick a cell to do so. There is an excellente information about Tick Cell Upon Selection, posted here http://www.ozgrid.com/VBA/excel-checkbox-tick-cell.htm. Its range is limited to (A1:A100)
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Cells.Count > 1 Then Exit Sub If Not Intersect(Target, Range("A1:A100")) Is Nothing Then Target.Font.Name = "Marlett" If Target = vbNullString Then Target = "a" Else Target = vbNullString End If End If End Sub
How can I increase the range so it would target C1:C30, E1:E30 ( total of 17 columns)?.
how to put the categories (Column H) out of the graph? (so more to the left, so not in the grey background) Here in the attachment you will see that the titles are in the graph instead of outside the grey background. Is it possible to do that?