-
RetiredGeek
AskWoody MVPAnother option w/o VBA:
Paste: =WEEKDAY(DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2)))=2
into a NAME called isMonday see screen capture below
Then use formula =isMonday (will return True or False)Assumptions:
1. Formula (=isMonday) is in cell immediately to the right of the one holding the date string in yyyymmdd format.Note: screen capture below shows formulas B1 the inline test, B2 Named formula in use. Both return True when Monday.
RG
-
RetiredGeek
AskWoody MVPBeethoven,
Just a couple of thoughts.
1. How are you saving the file? I would suggest always saving the file as an .xls file rather than converting it back and forth between .xls & .xlsx (2003 – 2007)
2. Is there something in the data that indicates the status, i.e. new, inactive, etc. If so you could simply apply a conditional format to the entire worksheet to do the row highlighting.
Hope this helps some.
RG
-
RetiredGeek
AskWoody MVPPenny,
This seems like a perfect application for the SubTotals function.
If you can sort the data on the registration numbers then goto Data->Subtotals…
In the dialog box select “Registration NO” in the “At each change in” field then
check what ever heading you have in Col E in the “Add subtotal to:” field and click OK.Hope this helps.
RG
-
RetiredGeek
AskWoody MVPMNN,
Sorry, I just can’t resist a chance to write some VBA.
Attached is a copy of your worksheet (including macro).
I had the macro create a sheet called Realigned-Data to be different from yours.
I also noticed that the macro had 1 more row than your REALIGNED DATA sheet.
I counted and it looks like the macro got it right-always a problem with manual manipulations.Enjoy,
Rg
-
RetiredGeek
AskWoody MVPMNN,
I tried using this range: ‘INITIAL DATA’!$C$1:$I$15,’INITIAL DATA’!$K$1:$Q$15,’INITIAL DATA’!$S$1:$Y$15,’INITIAL DATA’!$AA$1:$AG$15 but Excel came back with a “Reference Not Valid” message.
You might want to reconfigure your “Initial Data sheet” to have multiple lines per employee# {one for each facility he/she works at} then creating the pivot would be no problem. This realignment would also make it easier to verify that you didn’t have more/less than 100% allocation for an employee as the percentages would all be right there together w/o scrolling. This is what you have done with the “Realigned Data” tab except you didn’t sort it by Employee# & Facility. Just a thought.
RG
-
RetiredGeek
AskWoody MVPEd,
I did a little poking around and it looks like you’ve found the best way already.
I tried skipping the leading 0 for hours and it displayed ok but when I tried to =Sum()
a column of numbers they wouldn’t add up.Depending on the volume of numbers you have to enter you could set up a form and some VBA code to streamline the operation where you’d have separate input areas for hours, minutes, seconds and just use the tab key to move between them then have the VBA code assemble it for entry into the cell. You could even have the form default to the minutes field because I doubt if you have many entries where Hours are a factor.
The form would also be good for error checking because if you enter 0:59:80 into a time field formatted [h]:mm:ss it will convert to 1:00:20.
RG
-
RetiredGeek
AskWoody MVPIn Access you can drag & drop the fields in Design view. I don’t know about doing this in a linked DB.
RG
-
RetiredGeek
AskWoody MVPHoward,
Try this:
Code:With ActiveSheet.UsedRange .Copy .PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False End With
RG
-
RetiredGeek
AskWoody MVPCindy,
One way to do it is to open Excel
Press Alt+F11 to get into the VBA Editor
In the immediate window use the workbooks.open command to open the workbook.Ex: workbooks.open “d:pathfilename.xls”
If the Immediate window isn’t visible use the View menu or press Ctrl+G
RG
-
RetiredGeek
AskWoody MVPJoel,
Good backup software will allow you to breakup the backup into files of varying sizes to fit different media, e.g. CDs, DVDs, etc. Check out Acronis TrueImage. I’ve been using it for quite a while now and it has all the options you’ll need.
RG
-
RetiredGeek
AskWoody MVPJim,
Have you edited your shortcut that starts Excel?
If you place the /e switch after the path filename for Excel it will open w/o Book1.
RG
-
RetiredGeek
AskWoody MVPI am very used to CTRL+F6 to switch between workbooks within a single Excel window.
I just tried opening 2 workbooks by double clicking them in Windows Explorer they both opened in the same window and I had no problem switching using the Ctrl+F6. I checked the “The Windows in Task Bar” setting and it was checked. I unchecked this option and tried the same process and again it worked as above. So unless I am missing something I can’t reproduce the problem on my Win 7 machine with Excel 2003 SP-3.
RG
-
RetiredGeek
AskWoody MVPGee, that’s a new on on me…Thanks it will certainly change how I code things. I did a little searching and here’s a link to an article that explains how to handle events in forms, etc. Events in Forms
Any day you learn something new is a GOOD day.
RG
-
RetiredGeek
AskWoody MVPAnother Itteration…just so you have options.
Code:Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean) If Right(TextBox1.Value, 4) Like "####" Then Exit Sub ' The last 4 characters are all numeric, Exit the after update event. Else ' The last 4 characters are not all numeric. MsgBox ("This field requires the value to be entered in a specific format."), vbCritical, "Invalid format" Application.EnableEvents = False TextBox1.Value = " " TextBox1.SetFocus Application.EnableEvents = True Cancel = True End If End Sub
I tested this on A Win-7 machine running Excel 2003 SP-3 and all worked as you wish.
Note: if you copy the text notice that I changed your TextBox number to 1 from 10.It’s probably not necessary to say this but just in case you’re new to interface design your error message should state that the last 4 characters need to be numeric…unless of course you work for some 3 lettered agency
RG
-
RetiredGeek
AskWoody MVPAssuming all your layouts have the same (Excel) page layout you can add the following to the code above to print it.
Code:ActiveWindow.SelectedSheets.PrintOut Copies:=1 'Print It!
RG
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
End of support W10
by
barrym
1 hour, 3 minutes ago -
MS-DEFCON 2: Copilot for Christmas
by
Susan Bradley
1 hour, 44 minutes ago -
Sudden appearance of Edge Search Bar
by
EricB
15 minutes ago -
LogoFAIL firmware exploit bypasses hardware and software security
by
Alex5723
1 hour, 42 minutes ago -
Microsoft outlook ignores the registry keys
by
Heri Harry
23 hours, 29 minutes ago -
Windows 11 Insider Preview Build 22635.2841 released to BETA
by
joep517
18 hours, 52 minutes ago -
Thunderbird doesn’t open folders at most recent email in Inbox
by
LHiggins
16 hours, 9 minutes ago -
Three queries about the MS Outlook app on iPadOS
by
TonyC
22 hours, 26 minutes ago -
Win 10 22H2 November patches: Why do I have these 4 Windows App Runtime apps?
by
WCHS
5 hours, 45 minutes ago -
KB5032278
by
fpefpe
17 hours, 46 minutes ago -
A web browser security testing & privacy testing tool.
by
TechTango
1 day, 8 hours ago -
IOS 17.1.2 looses text alert tone
by
J9438
21 hours, 55 minutes ago -
What to know about CentOS Linux EOL
by
Alex5723
1 day, 15 hours ago -
ESU announcement coming?
by
Susan Bradley
13 hours, 55 minutes ago -
December 2023 Office non-Security Updates
by
PKCano
1 day, 9 hours ago -
Widespread Printer Bug caused by Windows Store!
by
Intrepid
15 hours, 38 minutes ago -
Xbox question
by
fernlady
1 day, 16 hours ago -
Unfound Updates
by
rebop2020
1 day, 13 hours ago -
Thieves rob DC Uber Eats driver, reject Android phone for not being iPhone
by
Alex5723
1 day, 15 hours ago -
McAfee popup add (from micro. Store)
by
Robin Heckler
1 day, 16 hours ago -
Random Screen Shut Downs (Windows 11 Pro)
by
OkCarl
3 hours, 50 minutes ago -
CPU performance degradation after 23H2 update
by
Alex5723
2 days, 4 hours ago -
PDFgear
by
Alex5723
13 hours, 35 minutes ago -
I’m getting a new computer. I need instructions on setting it up CORRECTLY
by
Sly McNasty
3 hours, 41 minutes ago -
Microsoft will not activate a valid reinstall of Office 16
by
TomK
1 day, 12 hours ago -
Dell laptop Win 11 BLACK screen!
by
WSpfeldmann
12 hours, 35 minutes ago -
Firefox change from French to English.
by
DaveBRenn
1 day, 15 hours ago -
W10 22H2 Nov 2023 PT Update: No monsters here
by
Rob Kay
2 days, 4 hours ago -
Windows : Is This the End of ‘Intel Inside’ ?
by
Alex5723
2 days, 8 hours ago -
windows 10 upgrade to 11
by
ken
2 days, 12 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2023 by AskWoody Tech LLC. All Rights Reserved.