-
WSgrugeon
AskWoody LoungerHi Shirley
You could try setting the Word Tools/Options/FileLocations/Autorecover to the new Temp directory.
The location for most temp files is determined by the environment variables Temp= and Tmp=. Environment variable are held in memory and only exist if something sets them. The something is almost almost always either a .Bat file or the NT equivalent a .Cmd file. These files can be edited with Notepad or anything else.
To see the environment variables you open the DOS box. (Start/Programs/CommandPrompt) and type in “SET” and press enter.
To set an environment variable you type (in the DOS box) SET VariableName=VariableValue. For example SET Temp=c:Temp.
Then press enter.The line
SET Temp=c:Temp can be in a .bat or .cmd file.The environment holds the latest value assigned to each variable.
The variable are held in memory and disappear when the computer is shut down or switched off.
Hope this grounding in DOS environment variable is useful to you in identifying your problem and may be useful to others.
-
WSgrugeon
AskWoody LoungerHi Phil
The /Q is for quiet. If you don’t have it you get a DOS window which will ask you if you really want to delete all the files in the temp directory. You have to type “Y” and Enter.
You don’t really want to see a DOSwindow do you?
-
WSgrugeon
AskWoody LoungerA quite different approach would be to make the source document read only (using its attributes). Then you open it as normal, but there is no problem with a number of users opening it at the same time.
-
WSgrugeon
AskWoody LoungerIf you do not have a login script you will neet to put the lines in the Autoexec.bat file on each workstation.
-
WSgrugeon
AskWoody LoungerThe help file says specifically you can’t do it. However it might be possible to create code which would do it. not in the macro but perhaps at print time using the BeforePrint event.
-
WSgrugeon
AskWoody LoungerOne workaround is to make all the blank cells on the source spreadsheet contain a space. Then they will link correctly.
However this may have consequences for formulae which reference the “blank” cells.
-
WSgrugeon
AskWoody LoungerHi Sherry
You are quite right. Your sample file behaves decidedly oddly. It does some macro type things but there are no visible macros.
Is it possible you added comments in Excel, then opened the file in lotus and resaved it, then went back to Excel?
-
WSgrugeon
AskWoody LoungerI am not going to write the VBA for you but I can give a few pointers.
I would suggest you set the first 12 cells in a column to the right of the list to equal the corresponding list number. Put a total of this column at the bottom and test if it = the target.
Then you need to work out a process for stepping through the list moving the spaces up into the list. Clearly the first step will be to make the 12th cell blank and the 13th cell = its corresponding figure. Then you make the 11 cell blank and make the 12 cell = its corresponding figure.
You would probably have a series of nested loops to do this but if you were very clever and wanted to minimise the size of the code you would use a recursive sub.
Back in the old days we used to do things like this for fun – see how much you can do with how little programming!
-
WSgrugeon
AskWoody LoungerI don’t think you can do this. One workaround is to create all the controls you might want and make them invisible. I did this to make a gantt chart. I had a stack of invisible boxes I could move to wherever I wanted them by code.
-
WSgrugeon
AskWoody LoungerYou need to set up a directory C:temp on each PC. Then you need to set 2 environment variables in your login script by including the lines
Set TEMP=C:TEMP
Set TMP=C:TEMPThe temporary files will then go where they do no harm.
You may want to include the fiollowing line in your login as well
Del C:TEMp*.* /Q
This will clear out the directory each day.
-
WSgrugeon
AskWoody LoungerDon’t bother! Right click and select Edit comment.
-
WSgrugeon
AskWoody Lounger -
WSgrugeon
AskWoody LoungerYou may need to use GetSetting and SaveSetting in a macro. You would need to set a macro to run when a new sheet based on the template was created which would get the last invoice number from the registry, increment it, and set the value of the relevant cell to that value. It would then save the new value back in the registry. This assumes only one user is using the spreadsheet, otherwise they will all be using different invoice numbers.
I am not aware of any command for putting a value back in the template although it might be possible to do that.
Another possibility would be to write the number out to a file and read it back in.
-
WSgrugeon
AskWoody LoungerI click where I want to start the selection, use the scroll bar until I can see the end point and then Shift-Click
-
WSgrugeon
AskWoody LoungerI overcame this once by using SEQ (Insert/Field/Numbering/SEQ) This field has a reset switch.
![]() |
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
-
Toll road scams are back: What to do if you get a text saying you owe money
by
Alex5723
2 hours, 13 minutes ago -
Windows update download issue…
by
CAS
1 hour, 46 minutes ago -
WUMGR & KB5053602 UPDATE/INSTALL FAIL
by
dataman1701
1 hour, 6 minutes ago -
Finding Microsoft Office 2021 product key
by
Kathy Stevens
5 hours, 51 minutes ago -
Over-the-Top solves it!
by
RetiredGeek
16 hours, 21 minutes ago -
To Susan – Woody Leonhard, the “Lionhearted”
by
Myst
23 hours, 22 minutes ago -
Extracting Data From All Sheets
by
WSJon5
1 day ago -
Use wushowhide in Windows 11 24H2?
by
Tex265
3 hours, 3 minutes ago -
Hacktool:Win32/Winring0
by
Marvel Wars
11 hours, 47 minutes ago -
Microsoft Defender as Primary Security Question
by
blueboy714
6 hours, 32 minutes ago -
USB printers might print random text with the January 2025 preview update
by
Alex5723
6 hours, 9 minutes ago -
Google’s 10-year-old Chromecast is busted, but a fix is coming
by
Alex5723
1 day, 13 hours ago -
Expand the taskbar?
by
CWBillow
1 day, 13 hours ago -
Gregory Forrest “Woody” Leonhard (1951-2025)
by
Susan Bradley
3 hours, 14 minutes ago -
March 2025 updates are out
by
Susan Bradley
1 hour, 16 minutes ago -
Windows 11 Insider Preview build 26120.3380 released to DEV and BETA
by
joep517
2 days, 6 hours ago -
Update Firefox to prevent add-ons issues from root certificate expiration
by
Alex5723
2 days, 13 hours ago -
Latest Firefox requires Password on start up
by
Gordski
3 hours ago -
Resolved : AutoCAD 2022 might not open after updating to 24H2
by
Alex5723
3 days, 2 hours ago -
Missing api-ms-win-core-libraryloader-11-2-1.dll
by
IreneLinda
2 minutes ago -
How Much Daylight have YOU Saved?
by
Nibbled To Death By Ducks
2 days, 4 hours ago -
A brief history of Windows Settings
by
Simon Bisson
1 day, 22 hours ago -
Thunderbolt is not just for monitors
by
Ben Myers
1 day, 20 hours ago -
Password Generators — Your first line of defense
by
Deanna McElveen
2 days, 2 hours ago -
AskWoody at the computer museum
by
Will Fastie
1 day, 2 hours ago -
Planning for the unexpected
by
Susan Bradley
2 days, 3 hours ago -
Which printer type is the better one to buy?
by
Bob99
3 days, 4 hours ago -
Upgrading the web server
by
Susan Bradley
3 days, 2 hours ago -
New Windows 11 24H2 Setup – Initial Win Update prevention settings?
by
Tex265
3 days, 22 hours ago -
Creating a Google account
by
DavidofIN
3 days, 20 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.