-
H. Legare Coleman
AskWoody PlusIt can be a lot of things. In mathematics, it is a greater than sign and is used in logic and boolean algebra to indicate the relationship between two values. In English, it is another form of parenthesis and can be used like (), {}, or []. In email, it is normally used to indicate that the texte between it and a usually accompanying “<" or the end of the current line was copied from the email being replied to. Have you seen it in some other context, there are probably other meanings.
-
H. Legare Coleman
AskWoody PlusI haven’t tried this, but it should work. Have the Icon launch a DOS batch file that uses the START command without the /Wait switch to launch the programs.
-
H. Legare Coleman
AskWoody PlusIf you are not using Excel 2000 (and therefore don’t have the Data Validation feature), or if Data Validation won’t work for some other reason, then you can use the worksheet change or selection change events and write VBA code to limit the data entry to whatever you want. That code is pretty tricky to write, so Data Validation would be much easier if it will work.
-
H. Legare Coleman
AskWoody PlusI would do something like this:
Dim wsOS As Worksheet On Error Resume Next Set wsOS = Worksheets("OurSheet") On Error GoTo 0 If Not wsOS Is Nothing Then Application.DisplayAlerts = False wsOS.Delete Application.DisplayAlerts = True End If wsOS = Nothing
-
H. Legare Coleman
AskWoody PlusIf you give in, then why will Microsoft ever get rid of this monstrosity? I will never buy a product that contains the Registation Wizzard.
-
H. Legare Coleman
AskWoody PlusYou are exactly right, I am paying to use the software and the registration wizard prevents me from using it. This is Microsoft’s attempt to return to the horrible old days of copy protection. It didn’t work then and I hope it doesn’t work any better for Microsoft. Lotus, Ashton Tate, and other companies long forgotten tried to keep copy protection in the face of customer dislike and look where they are. Will Microsoft do the same?
-
H. Legare Coleman
AskWoody PlusOk, the code below will find the combination of 12 cells in the range A1:A21 that adds up to the sum passed as a parameter to the subroutine. First, a couple of warnings. The procedure is written to expect to find an exact match on the sum and therefore is only guaranted to work on integer values. If the cells can contain real numbers, the procedure will have to be modified to deal with the rounging errors. Second, be patient. This procedure can run for a long time. To find the sum where the values were in the last 12 cells took over 5 minutes on the 400mz system I tested it on.
Public Sub Find12(dReqTot As Double) Dim I1 As Integer, I2 As Integer, I3 As Integer, I4 As Integer, I5 As Integer, I6 As Integer Dim I7 As Integer, I8 As Integer, I9 As Integer, I10 As Integer, I11 As Integer, I12 As Integer Dim dSum As Double, dList(1 To 12) As Double Dim strWk As String For I1 = 1 To 10 For I2 = I1 + 1 To 11 For I3 = I2 + 1 To 12 For I4 = I3 + 1 To 13 For I5 = I4 + 1 To 14 For I6 = I5 + 1 To 15 For I7 = I6 + 1 To 16 For I8 = I7 + 1 To 17 For I9 = I8 + 1 To 18 For I10 = I9 + 1 To 19 For I11 = I10 + 1 To 20 For I12 = I11 + 1 To 21 dSum = Cells(I1, 1) + Cells(I2, 1) + Cells(I3, 1) dSum = dSum + Cells(I4, 1) + Cells(I5, 1) + Cells(I6, 1) dSum = dSum + Cells(I7, 1) + Cells(I8, 1) + Cells(I9, 1) dSum = dSum + Cells(I10, 1) + Cells(I11, 1) + Cells(I12, 1) If dSum = dReqTot Then Exit For Next I12 If dSum = dReqTot Then Exit For Next I11 If dSum = dReqTot Then Exit For Next I10 If dSum = dReqTot Then Exit For Next I9 If dSum = dReqTot Then Exit For Next I8 If dSum = dReqTot Then Exit For Next I7 If dSum = dReqTot Then Exit For Next I6 If dSum = dReqTot Then Exit For Next I5 If dSum = dReqTot Then Exit For Next I4 If dSum = dReqTot Then Exit For Next I3 If dSum = dReqTot Then Exit For Next I2 If dSum = dReqTot Then Exit For Next I1 If dSum = dReqTot Then strWk = Cells(I1, 1) & "+" & Cells(I2, 1) & "+" & Cells(I3, 1) & "+" strWk = strWk & Cells(I4, 1) & "+" & Cells(I5, 1) & "+" & Cells(I6, 1) & "+" strWk = strWk & Cells(I7, 1) & "+" & Cells(I8, 1) & "+" & Cells(I9, 1) & "+" strWk = strWk & Cells(I10, 1) & "+" & Cells(I11, 1) & "+" & Cells(I12, 1) & "=" & dReqTot MsgBox strWk Else MsgBox "No combination adds up to " & dReqTot End If End Sub
-
H. Legare Coleman
AskWoody PlusFrom your description of what you are doing, nothing is goofy, it is working exactly as it should be working. The date format is the DISPLAY format and has nothing to do with interpreting what you type into a cell, it only determines how what is in a cell is displayed. When you enter something like 11801 into a cell, Excell does not have any way of knowing that you mean this to be a date. It will put that number into the cell. If the cell is formatted as a date, then Excel will display a date that is 11,801 days from 1/1/1900 which is not 1/18/2001. When entering a date into a cell, you must type in the separator ncharacters. If you want it to work the way you described, it can be done by writing a Change event macro that will take what you type and insert the separators.
-
H. Legare Coleman
AskWoody PlusA formula like the following will generate a random number between DE and ABC:
=DE+(ABC-DE)*Rand()
You can copy that formula to as many cells as you need to get the number of values you need. You may also need to use the Round function to round the values to the number of digits you need. If you don’t want the values to change every time the sheet recalculates, then copy the range and do a paste special values.
-
H. Legare Coleman
AskWoody PlusThere are a number of possibilities. First, to “Options” in the “Tool” menu. In the dialog box that results click on the “Transition” tab. At the bottom of that display see if you have either “Transition formula evaluation” or “Transition entry” selected. If you do, deselect them and try the entry again. Either of those options can cause this symptom.
If that is not it, then we need a little more information. Format the cells containing the date to display a 4 digit year (“mm/dd/yyyy”) and tell us what that year really is. It is 0023, 1923, 2023, etc.?
-
H. Legare Coleman
AskWoody PlusWe need a little more information:
1- Does it have to be 12 consecutive values, or should it be any combination of the 21 cells?
2- Can a particular cell be used more that once?
3- What result do you want and how do you want it. Surly you don’t want the sum since you know that going in. Do you want a list of the indexes of the cells used? Do you want a list of the values used? In an array?
I assume you are talking about doing this in VBA.
-
H. Legare Coleman
AskWoody PlusThere are several ways to do this, and all of the ones I know about require a macro (VBA procedure). The macro would be tied to the Application.Newworkbook event. The macro would generate the invoice number and place it in the appropriate cell. How you generate this number depends on what you want the number to look like, and if the template is being used on more than one PC to generate invoices. If you want a sequential number, and the template is only used by one person, then you can keep the current invoice number in the Registry or in a file on the hard disk. When the Newworkbook event fires, the macro would retrieve the current number, add one to it, put the new invoice number in the appropriate cell, and write the new current number back to the Registry of the file. If the template is used on more than one PC and you want to insure unique sequential numbers, then the current number will have to be kept in a file shared on a file server by all of the PCs using the template. Another method would be to generate a invoice number from the date and time.
-
H. Legare Coleman
AskWoody PlusOne thing that you can do is to replace the DELTREE command with the following command:
ECHO Y|DEL C:WINDOWSTEMP*.*
This will delete the contents of the temp directory without deleting the directory itself. Unfortunately, this has one negative side affect, it will not delete any subdirectories that were created in the temp directory. This could leave a lot of junk lying around.
A second thing that you can do is to create a new temp directory after it is deleted bay adding this command after the DELTREE command:
MD C:WINDOWSTEMP
There is also one negative to this approach if the batch file is run while there are any files in the temp directory that are open. If there are files in the temp directory that are open when the batch file us run, then DELTREE will not be able to delete those files, and therefore will not be able to delete the directory. That means that you will get several error messages when the batch file runs. If you don’t mind seeing those messages, then there is no harm done. However, there is one other possibility that might cause you a problem with this approach. If DELTREE is able to delete the directory, and if a Windows program attempts to create a new file in the temp directory before it gets recreated, that will fail. What will happen then depends on how the program trying to create the file is programmed to handle the error. This is not very likely, but it could happen.
-
H. Legare Coleman
AskWoody PlusYou can put a button on the Office Shortcut Bar to print a document, however, that button will always print the same document and I don’t think that is what you had in mind.
There is a better solution for printing documents from the desktop from applications that support it. First, open your Printers folder and select a printer that you want to be able to use to do this. Right click on that printer and drag it to your desk top. Release the right button and click on “Create Shortcut” in the pop up menu. This should create a shortcut for the printer on your desktop. Do this for all printers that you want to be able to use to do this. Now, when you want to print a document, just drag its icon from your desktop or from Windows Explorer and drop it on the printer icon on the desktop. Windows will open and print the document. I think that all of the Microsoft applications support this.
-
H. Legare Coleman
AskWoody PlusWhat do you want to do with it? You can copy the cell and paste it with formatting into another cell. I haven’t tried it, but I think you can get the cell value and the cell number format and use them in a Text function.
![]() |
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
-
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
14 hours, 5 minutes ago -
Small desktops
by
Susan Bradley
1 hour, 33 minutes ago -
Totally disable Bitlocker
by
CWBillow
11 minutes ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
22 hours, 44 minutes ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
1 day ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
1 day, 3 hours ago -
Mystical Desktop
by
CWBillow
1 day, 3 hours ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
9 hours, 16 minutes ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
34 minutes ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
1 day, 19 hours ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
1 day, 22 hours ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
1 day, 20 hours ago -
What is wrong with simple approach?
by
WSSpoke36
1 day, 12 hours ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
2 days, 7 hours ago -
Location, location, location
by
Susan Bradley
21 hours, 57 minutes ago -
Cannot get a task to run a restore point
by
CWBillow
2 days, 8 hours ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
1 day, 23 hours ago -
June 2025 Office non-Security Updates
by
PKCano
2 days, 19 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
22 hours, 17 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
2 days, 19 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
3 days, 6 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
2 days, 8 hours ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
3 days, 14 hours ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
3 days, 14 hours ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
3 days, 4 hours ago -
Firefox 139
by
Charlie
2 days, 21 hours ago -
Who knows what?
by
Will Fastie
1 day, 23 hours ago -
My top ten underappreciated features in Office
by
Peter Deegan
1 hour, 59 minutes ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
1 day, 9 hours ago -
Misbehaving devices
by
Susan Bradley
2 days, 11 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-2025 by AskWoody Tech LLC. All Rights Reserved.