Click On Cell Makes Calendar Pop Up
Dec 27, 2007
I have read through numerous posts, but cannot get one thing to work. I am using Excel 2003, and am trying to get a calendar to pop up, to select a date, and then return that date to Cell B2.
I was successful at making the calendar pop up by the following methods:
1. Added a button to the toolbar, and assigned the Calendar Macro to it.
2. Using VB, added a sub-menu item to the right-click (context) menu, using the code below.
Private Sub Workbook_Open()
Application.OnKey "+^{C}", "Module1.Macro2"
End Sub
However, my goal is to make the calendar appear when I click on cell B2.
I tried using the following code, but when I click on B2 nothing happens.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$B$2" Then UserForm1.Show
End Sub
I also tried:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Excel.Range, Cancel As Boolean)
With Worksheets(ActiveCell.Worksheet.Name)
If ActiveCell.Column = 2 Then
If ActiveCell.Row = 1 Then
UserForm1.Show
End If
End If
End With
End Sub
View 9 Replies
ADVERTISEMENT
Aug 18, 2008
Is there a way to make a cell that when you click it a calendar pops-up and you can click a date on that calendar to auto-fill in that cell?
View 9 Replies
View Related
May 11, 2005
I need to popup a calendar when user clicks on a cell.
I am using the internal add-in MScal 8.0 but can only insert date
my clicking on a cell and activating the macro.
also is there a way if user selects enable macros on digital certificates
that the addin can be selected automaticly for the user?
View 9 Replies
View Related
Jul 4, 2014
I'm trying to write a code to say, pop a calendar if clicked on anyone of the following cells:
Sheet : "Friday"
Cell Range: D3 to D999, F3 to F999, H3 to H999
I'm hoping this function will not affect me from using the Sort (by date) later on.
View 3 Replies
View Related
Feb 4, 2007
I've been reading through the forums, but do not know how to double click to get the calendar pop up,only in a certain range (e.g. Cells G5:G85).
I already have the module: frmCalendar
Running Office 2003
View 6 Replies
View Related
May 2, 2014
I am currently using a pop up calendar in Excel 2010 that with CTL+SHIFT+B that a calendar pops up, you select your date, and then the calendar closes. What I now need is to write a code or formula or something that when I click in any cell in column F lets say that the calendar opens automatically in that cell and then still close automatically after the date selection is made.
View 3 Replies
View Related
Apr 21, 2008
I want to be able to show a calendar control, have the user select a date, and then fill a cell with that date. The range I would want the calendar to appear is B2:B100.
View 9 Replies
View Related
Mar 4, 2009
See attached document. In cell G4 i need a format which will make the cell green, amber or red depending on the values in Cells I7 to I9.
3 Greens = Cell G4 to be green
2 Greens, 1 Amber = Cell G4 to be amber
2 Greens, 1 Red = Cell G4 to be red
View 2 Replies
View Related
Jan 9, 2014
I want to set a conditional formatting rule that makes a cell red or green depending on if the value in the cell is larger or smaller than the value in another cell +2% or -3%. If neither of these conditions are met no formatting should be applied..
a) In the cell (R104) where the condition is set I have the following formula:
=if(BP104=0;"";BQ104/BP104) (the values in BP104 and BQ104 is retrieved from a database)
b) The conditions I've set in R104 are the following
1) =isblank($R$104) (condition: "nothing")
2) =$R$104<$R$106-0,02 (condition: "red")
3) =$R$104>$R$106+0,03 (condition: "green")
c) In cell R106 the value there is a value of 90%
The conditions seem to work fine when the value in R104 is higher or lower than the conditions set in 2 and 3 above but when the value is blank in R104 the cell goes green, which it shouldn't.
View 6 Replies
View Related
Dec 15, 2009
I would like to do a routine in VBA on excel 2007 that makes the following:
1- When the mouse is over a cell it pops-up a window that shows a picture;
2- When the pointer is removed from the cell the window that contains the picture closes;
It is very important that the picture that is shown be adressed by a relative path from the folder in which is the excel file.
The pictures can change; this is the reason that the picture should be addressed by a path.
View 6 Replies
View Related
Mar 14, 2012
I have searched and have not been able to find an answer to this question so it might be a little unique possibly. I have an ActiveX combo box that I am trying to do something with. The text that I want to appear in the combo box is already there and I did this by creating a list and referencing it to the combo box. So the combo box has the following four items in its drop down:
Boat
Car
Plane
Walk
Now the part I cannot figure out is how to make a selected value appear in another cell based on what was selected in the combo box. For example, if boat is selected in the combo box, then I want the value 25 to appear in a cell. If Plane is selected in the combo box, I want the value of 100 to appear in a cell. For walk 5, and for car 22. I know this can easily be done with data validation and a validation drop down list but I do not want to use that but need to have a combo box do it instead. I just don't know if it cannot be done as a list or not and have experimented with INDEX but not having any luck there. I do not want to use any macros for this either. Basically I am wondering how I can make my combo box work just like data validation drop down menu bar with formatted values outputted into a cell.
View 3 Replies
View Related
Feb 7, 2014
I wonder if it is possible to make a macro that right clicks a cell and then chooses a option from the list?
View 11 Replies
View Related
Apr 4, 2013
I currently have a worksheet that when a user clicks on the cell, a calendar form opens. From here they can select a date, click ok, and the date gets placed in the corresponding cell they clicked on.
Now if the user needs to change that date, i want them to be able to click on the cell again, and when the calendar opens, the date in the cell would be selected on the calendar. I was able to do this in a userform, but im not sure how to edit it to work on the worksheet. I am using the below to populate the calendar.
Code:
private sub worksheet_selectionchange(byval target as range)
if not intersect(target,range("aa16:aa24")) is nothing then .show calendar
When the user clicks the date, the below code places it in the cell.
Code:
private sub ok_click()
with active cell
.value=calendar1.value
end with
unload me
end sub
Now the below code was used when I was using a userform, but im not sure how to edit this to pull the date from the active cell.
Code:
privatesub userform_activate()
me.calendar1=date
if not tb is nothing then
if isdate(tb.value)then me.calendar1.value = tb.value
end if
end sub
View 1 Replies
View Related
Jan 8, 2010
I have a program where I can update the calibration due date of an item. I have attached a cut down version of my program showing the relevant areas. There is usually password protection on the worksheet so it can only be edited via the form (the vba coding removes the password protection before editing, then re-enables the password protection after editing). The "Update Calibration" button is usually on a "Menu" sheet.
Once the form is opened a serial number is typed in the textbox. The calendar button is then clicked, which brings up another form with the calendar on. The due date is selected on the calendar. When "OK" is clicked, the date label caption is then changed to the selected calendar date. When "Submit" is clicked, the spreadsheet will search for the Serial Number, once found, the label caption (being the date selected) will be entered into the cell to the right of the serial.
If the day selected on the calendar is greater than 12 the date is entered correctly onto the sheet. example: calendar date selected = 15/01/2010. shown on sheet as 15/01/2010. However, if the day selected on the calendar is 12 or less, the date is for some reason entered incorrectly onto the sheet. example: calendar date selected = 08/12/2010. shown on sheet as 12/08/2010???? What is going on here? how come the day and month are swapped around if the day is less than 12????
View 4 Replies
View Related
Dec 24, 2009
Using Excel 2007 Calendar Control:
I want to select a date of choice from a calendar in a field within an Excel spreadsheet.
I do not know how to do userforms and so that is why I wonder if I can add this in just a spreadsheet.
This is how far I have gotten so far: After doing the following, I have a static calendar setting in my spreadsheet like a text box showing the current date.
Developer
Insert
More Controls
Calendar Control 12.0
View 9 Replies
View Related
Aug 17, 2014
Following link explains how can format negative percentages.
[URL]....
Following code makes negative percentages red, positive percentages green.
[Code].....
I want to make; negative percentages red, positive percentages green, zero percentages blue, ---------->This is my question.
Attached File : Color Format.xlsm
View 3 Replies
View Related
Sep 24, 2009
I wrote a code that is suppose to save the workbook every time a change is made but so far I have been unsuccessful at getting it to work. The workbook contians 7 worksheets.
This is the code I wrote to try and accomplish this task ....
View 6 Replies
View Related
Oct 29, 2008
I'm helping out a community that puts out a role playing game by making a character sheet for their gaming system. It's normally a pen-and-paper type affair, but a few people have reached out to me and asked me to make it. Now, one thing that I really thought would be nifty would be to make it persistent. I know of the Excel basics, creating basic formulas and the such, but this is where I hit a brick wall.
For the character sheet, they normally have basic attributes on a 1-20 scale. These attributes are accomanied by a bonus. The only thing is those, while these bonuses go across a linear path (For attribute 1, it's -30, for 2 its -20, for 3 its -10, for 4 its -5 for 5 its 0....), I cant seem to figure out how to create some kind of If/Then formula for it....
Heres my example:
Brad makes a character that has a score of 9 for one of his attributes. The bonus given to someone with a 9 is a +10. What I'm looking to do is create a table that sees that 'If (c9)=9, Then (d9)=+10'...
And my second related issue...
Is there any possible way to do the above mentioned formula in relation to a drop down selection bar? It's the same thing here; To break it down simply, It would be excellent if there was a way for it to say If (a10)=Warrior, then (c10)= +10.
View 3 Replies
View Related
Feb 24, 2009
I am importing a .txt file into Excel that has two columns of dollars and cents. When I do my subtotals, all subtotals should be zero. Some of the totals show as 0.00, some as (0.00) and some as a dash which is what I would like for all of them. I have tried: ...
View 9 Replies
View Related
Mar 7, 2009
I am using a great pop up calendar without ActiveX made by a guy called Phil Johnson. When you click a specified cell the calendar appears. The only problem is that the calendar doesn't default to today's date when it opens.
I have the original file Calendar source code if anyone needs it.
View 4 Replies
View Related
Jan 4, 2013
I have an (organization) work book that contains departments in different tab with each department having its own tab. In each tab is the employee name, dept manager, dept number and emp number. In the CoverSheet (main sheet) I want to put the department numbers in a drop down menu.Upon selection of a department number i want to Look in the whole workbook to see where the department number is, pull up the department head and all the employees in that department with their employee numbers
The reason for this is that I want to be able to add a button to delete/edit to be able to edit employee details centrally from this particular (CoverSheet) sheet and update the relevant sheet.
Also put in an input box to add employees and update the relevant tab (department)
View 7 Replies
View Related
Nov 20, 2013
I have a (phylogenetic) matrix with a species in each row, and morphological character in each column, scored as 0, 1, 2, 3 or 4 for each different species, so something like the following but much bigger:
Character 1 Character 2 Character 3
Species A 1 0 1
Species B 3 2 2
Species C 1 2 0
I want to identify the minimum combination of different columns (i.e. their values, but also which columns) that make a particular row unique.
View 14 Replies
View Related
Aug 28, 2009
Trying to design a check that makes a user insert an integer between 0 and 90. So far I can use this:
View 3 Replies
View Related
Feb 19, 2012
I am using the below to open a text file and copy the used range to my working workbook. The opening of the file makes the code slow and and also it may be bcoz i am trying to paste 11800 lines of data from one file to another.
Also i can see the flickering of the screen when the files are open. How to make the code faster and more efficient.
Code:
Sub readSimFile()
Application.ScreenUpdating = False
'//code//
Application.Calculation = xlCalculationManual
[Code] ......
View 5 Replies
View Related
Jan 12, 2012
when we insert a jpeg image into a excel sheet the font on that page looks fuzzy.
View 2 Replies
View Related
Jan 9, 2010
Trying to word this right. I have one cell with a date of 01/01/2010. I have other cells that I want to be equal to this cell plus 1 or more months.
For example A1=01/01/2010
I want A2 to = 02/01/2010 based on one calendar month entered into A1. So if A1 changes 03/01/2010, A2 will = 04/01/2010.
View 3 Replies
View Related
Jan 19, 2008
Is it possible to modify the following codes so that if the active cell is formatted as Date when the cell is clicked the pop-up calendar shows.
View 11 Replies
View Related
Feb 11, 2009
I have search through this forum and gotten all info necessary to set up a calender pop up except for one piece.
I am using excel 2003 with XP and would like to put got on a work sheet so if I select range K31:m37 my calendarfrm will show. I have seen code for it to work with a date formated field but I would prefer it work on a the range only.
View 3 Replies
View Related
Jan 22, 2012
I need to count all the cells that have a value across the calendar.
Column G to AC FOR ALL column B THAT HAVE GCE and only for the start and finish date of of my input
So when i input a start and finish and i want to find how many cells have a value across column c to column ac for all GCE in column B
I tried -
=SUMPRODUCT((g1:ac1>=startdate)*(g1:ac1
View 1 Replies
View Related
Mar 30, 2013
I want calendar in drop down and select date which we required.
View 1 Replies
View Related