I have a row that contains each date for the year in B5:NB5. I would like to have a button or macro that will jump to the cell containing today's date.
I have a protected worksheet with about a dozen unprotected cells (so the user can just answer question from a validated list). Also unprotected is a hyperlink back to the main menu (Sheet1).
My problem is when a user clicks outside of where they should (i.e. on a protected cell) - it executes the hyperlink back to Sheet1.
I have tried unprotecting cells around the hyperlink. I even tried putting "dummy" hyperlinks around the main one referring it back to the same sheet.
I have a worksheet that has a sent date and expected delivery date I need create a macro that will alert me if today's date is within 5 days of expected delivery date.
The formula looks at the chosen start date (AL260), and then uses a displayed text day (AP20) to display the relvent date to the text day, this works fine however if the start date is say 08/08/14 (a Friday) when the formula detects a Monday (this copies down a range looking at the start date and the text days to produce dates on each line, the formula displays the Monday dates prior to start date, is there any way to alter this to make it display the dates ahead of the chosen start date?
this is my first post and i was a little unsure as to whether to put this in the General or VB/Macros forum, because it kind of involves both.
i'm trying to write a macro that inserts a formula that uses the date of the day that it was run (that is, i don't want it to be volatile like TODAY() and NOW(), but i don't want to have to manually type in the date into each formula).
is there a way that i can write a formula that uses the date of the day it is entered into the cell, or write a macro that adds today's date (perhaps using ActiveCell.Value = Date) and then writes a formula around that?
I cells B5:B15 I have a list of dates from last year. I need a formula that I can put in cell D5 that gives me the date that is closest to the same day last year.
Example:
If today is 4/9/14
and
From B5:B15 there were the following dates: 3/12/13 3/19/13 3/29/13 4/5/13 4/8/13 4/12/13 5/6/13 5/29/13
Cell D5 would contain
4/8/13 since it is the date closet to same day last year.
Column 1 is the name of a property Column 2 either says "Primary" or "Secondary" Column 3 has a date of when some building work is due to be completed.
I need a formula that can tell me how many entries there are in the second column of "primary" sites that have a completion date that is less than the current date.
I tried searching through the forums, but I don't exactly know how to word my question!
I have a workbook with two sheets: Meetings and MasterStatus
On the both sheets I have taskID for a specific task.
On the MasterStatus sheet, I want to use an array to look up the next meeting date for each taskID (Column C), referencing the Meetings sheet (Column E) to do so.
I’ve been searching the forum but am struggling to find exactly the information I need!
I’m trying to get a column of cells to update with the date that the cells contents change to “Y”. I had been using the formula =IF(I7="Y",TODAY(),"-") in cell J7 but this updates the date every day. I need this date to remain the same as when it’s first populated.
I’ve been trying to cut and paste text from existing posts into the Visual Basic code but am new to this so am not getting the results I need. I had tried:
Private Sub Worksheet_Change(ByVal Target As Excel.Range) 'will put date in column B when something is put in A If Target.Column = 9 Then Target.Offset(0, 1).Value = Date End If End Sub
But this caused all sorts of problems! I then tried messing around with:
Option Compare Text Private Sub Worksheet_Change(ByVal Target As Excel.Range) On Error GoTo enditall Application.EnableEvents = False If Target.Column = "I" Then If Target.Value = "Y" Then Excel.Range("J").Value = Date End If End If enditall: Application.EnableEvents = True End Sub
But this doesn’t work either. In fact, both these codes are probably riddled with errors as I’ve been trying to learn by trial and error!
Hi All, I want to set up a macro that will input a date stamp for the working day before this one. I have to input the status of dozens of meeting rooms everyday and the checksheets that I work from are from the previous working day (So on a Monday, I want the Macro to enter Friday's date). I wanted to create a quick macro to save myself the hassle of entering the date for every entry and obviously, if I incorporate the TODAY() function it will update every time I open the workbook and give me the wrong date.
I've been checking related threads and can't seem to find either a VB code or a function that'll enable me to do this (I haven't looked particularly hard as I'm at work ).
I am trying to compare a row of dates (row 1) and need to compare to today and write future under dates in the future. I am doing this in VBA, it is part of a bigger macro. This is the outcome I am looking for:
My spread sheet is a church offering register that is used to record weekly contributions. Column A contains the names of the individual contributors. Columns B through BA are used to record the weekly contributions for each of the 52 weeks of the year. Row 1 of columns B through BA contains the Sunday date MM/DD/YYYY. I would like to have a macro that would scan those cells looking for a date < today. If that condition is true, I would like to hide that column. When date = today or date > today the macro can end. The goal is to have display the current week's column immediately following Column A.
I've been using the following code and would like to add another IF that checks the value of a cell to see if it holds today's date.
Code: If Range("E" & CStr(LSearchRow)).Value "Closed" Then If Range("E" & CStr(LSearchRow)).Value "Closed w/o Customer Confirm" Then 'Select SR in Sheet to update Range("B" & CStr(LSearchRow)).Select
[Code] ......
I tried to modify it to...
Code: If Range("E" & CStr(LSearchRow)).Value "Closed" Then If Range("E" & CStr(LSearchRow)).Value "Closed w/o Customer Confirm" Then If Range("AK" & CStr(LSearchRow)).Value "=today()" Then 'Select SR in Sheet to update
[Code] ......
I've tried a couple of other things but no success
I'd like a macro to rename a worksheet from its current name of "FullScreen (2)" to say Numbers, plus today's date (without the plus) For example... Numbers as of 02-17-09
I need a macro that can jump to the nearest current date in column B from anywhere on the current tab. all the dates are in 10/09/2009 format, and the actual date of today might not be in that column. This can be + or -1 one day search from today. After this macro run's the nearest current date will be the active selected cell in column B.
Ive got this macro used to search for a particular code in an excel sheet with about 4000 codes, each assigned a hyperlink.
my goal is to make the user enter the hyperlink automatically in the code upon hitting search.
So far this is what i have:
the problem is that it only works with hyperlinks which are assigned a link (right click assign hyperlink) and not codes which work with a formula for example =HYPERLINK("http://www.google.com", "ABC123")
Sub searchsheet() 'Opens box and ask what do they want to search searchthis = InputBox("Type in a location keyword.", "Property Search") 'Tells where to search
I have data going in to a small table which has some empty rows as that data is not yet available... My problem is, I need to sort this table in date order but with the date nearest to today's date at the top...
The sort function puts oldest at the top or oldest at the bottom which is no good for what I need...
Is there a line I can add to the end of my If macro so that if the If section is true it will jump to a point in the macro after doing the tasks outlined in the IF macro? At the moment I have about 10 If macros in a row and it is causing the macro to take a long time to process. They are alos ordered should one become true all the ones following it will end up being false. The computer doesn't know this obviously so is there anyway to skip all the extra processing?
I have a workbook with two sheets: Sheet 2 (CustomerVehicleInfo) contains a client database. Sheet 1 is kind of a virtual work order where the mechanic enters the name of a client (in A1) and all his info pops up in cells B4-F4, according to Sheet 2.
I used a simple VLOOKUP for that: =IF($A$1<>"",VLOOKUP($A$1,CustomerVehicleInfo!$A:$E,1),"")
Same formula for cells C4-F4.
Problem is that the client data needs to convert from a formula to static text and next time the mechanic enters a new name in A1 it needs to jump to the next row, starting at B5.