-
WSAndrewO
AskWoody LoungerThe only other instances I find when worksheets don’t copy is when they’re in some state that it is ‘greyed out’. For instance when actively editting a text box, or when a dialog is up but hidden behind the window. I’d be tempted to try range(“A1”).select to make sure
-
WSAndrewO
AskWoody LoungerI’m guessing as I don’t get this kind – but its a UTF-8 encoding that is not being encoded or decoded properly. I pick the ? is an “escape” character
-
WSAndrewO
AskWoody LoungerBy ‘hangs up’ do you mean
* ‘locks up’ as in will not do anything and has to be killed
* Disconnects a phone line from a dial-up modem (although I’m assuming not if you have a cable modem)
* Just doesn’t downloadIf the later, what happens if you click send/receive?
As a general rule of computing, any recent change is normally the cause, or has triggered a ‘feature’ that was already lurking. However, I’m hard pressed to see how this is the cause unless you’re dealing with an ISP network time-out that is being lost due to a firewall activity or some other ‘deep’ issue.
-
WSAndrewO
AskWoody LoungerBy ‘hangs up’ do you mean
* ‘locks up’ as in will not do anything and has to be killed
* Disconnects a phone line from a dial-up modem (although I’m assuming not if you have a cable modem)
* Just doesn’t downloadIf the later, what happens if you click send/receive?
As a general rule of computing, any recent change is normally the cause, or has triggered a ‘feature’ that was already lurking. However, I’m hard pressed to see how this is the cause unless you’re dealing with an ISP network time-out that is being lost due to a firewall activity or some other ‘deep’ issue.
-
WSAndrewO
AskWoody LoungerBest of luck. I found the codes by trial and error by recording macros as I set the trays
Sub SetLetterHead()
‘
‘ Macro written 11/10/2004 by Andrew Ollivier
‘
‘ Sets appropriate upper tray, prints, then resetsDim FirstTrayOn
Dim OtherTray‘ Assume that it is one of the Minoltas
FirstTrayOn = wdPrinterUpperBin
OtherTray = 508‘ Correct for the HP8100 Printer
If InStr(1, ActivePrinter, “HP8100”) > 1 Then
FirstTrayOn = wdPrinterLowerBin
OtherTray = wdPrinterLargeCapacityBin
End If‘ Or the HP 4200 one
If InStr(1, ActivePrinter, “4200”) > 1 Then
FirstTrayOn = 264
OtherTray = 263
End If‘ OK done – set the page for letterhead
With ActiveDocument.PageSetup
.FirstPageTray = FirstTrayOn
.OtherPagesTray = OtherTray
End With‘ Print the current document
ActiveDocument.PrintOut
‘ and reset the printer to plain
With ActiveDocument.PageSetup
.FirstPageTray = OtherTray
.OtherPagesTray = OtherTray
End WithEnd Sub
-
WSAndrewO
AskWoody LoungerBest of luck. I found the codes by trial and error by recording macros as I set the trays
Sub SetLetterHead()
‘
‘ Macro written 11/10/2004 by Andrew Ollivier
‘
‘ Sets appropriate upper tray, prints, then resetsDim FirstTrayOn
Dim OtherTray‘ Assume that it is one of the Minoltas
FirstTrayOn = wdPrinterUpperBin
OtherTray = 508‘ Correct for the HP8100 Printer
If InStr(1, ActivePrinter, “HP8100”) > 1 Then
FirstTrayOn = wdPrinterLowerBin
OtherTray = wdPrinterLargeCapacityBin
End If‘ Or the HP 4200 one
If InStr(1, ActivePrinter, “4200”) > 1 Then
FirstTrayOn = 264
OtherTray = 263
End If‘ OK done – set the page for letterhead
With ActiveDocument.PageSetup
.FirstPageTray = FirstTrayOn
.OtherPagesTray = OtherTray
End With‘ Print the current document
ActiveDocument.PrintOut
‘ and reset the printer to plain
With ActiveDocument.PageSetup
.FirstPageTray = OtherTray
.OtherPagesTray = OtherTray
End WithEnd Sub
-
WSAndrewO
AskWoody LoungerAt work, at a user’s request, I created a small macro that was linked to a button.
Effectively it was a “Print this letter with letterhead as the first page” commandIt
* Set the letterhead (using page setup (first page tray selected))
* Issued a print
* Reset the letterhead to plain (page setup again)They’re very happy with it.
The downside is that the printer codes for trays are absolutely unique to particular printers – I built the Macro by simply recording the above sequence on the target printer. I later modified it to detect the particular printer involved, and change the tray codes appropriately so that I could apply it universally in my installation. I can post a copy after the weekend if you’re interested.
-
WSAndrewO
AskWoody LoungerAt work, at a user’s request, I created a small macro that was linked to a button.
Effectively it was a “Print this letter with letterhead as the first page” commandIt
* Set the letterhead (using page setup (first page tray selected))
* Issued a print
* Reset the letterhead to plain (page setup again)They’re very happy with it.
The downside is that the printer codes for trays are absolutely unique to particular printers – I built the Macro by simply recording the above sequence on the target printer. I later modified it to detect the particular printer involved, and change the tray codes appropriately so that I could apply it universally in my installation. I can post a copy after the weekend if you’re interested.
-
WSAndrewO
AskWoody LoungerJanuary 6, 2005 at 3:34 am in reply to: How to compact a database programatically (2002 SP3) #918795Hans
As always – little gems of knowledge. I like the look of the Compact on Close option
-
WSAndrewO
AskWoody LoungerJanuary 6, 2005 at 3:34 am in reply to: How to compact a database programatically (2002 SP3) #918796Hans
As always – little gems of knowledge. I like the look of the Compact on Close option
-
WSAndrewO
AskWoody LoungerCharlotte
Thanks for trying. I find that in my debugging efforts I’ve lost the failed code (.close) and replaced it with working code.
I don’t really want to replicate the failure anymore. I’m now a happy camper (on this issue) at leastbut I’m sure you’ll see more intriguing posts from me as I stumble through the minefield.
-
WSAndrewO
AskWoody LoungerCharlotte
Thanks for trying. I find that in my debugging efforts I’ve lost the failed code (.close) and replaced it with working code.
I don’t really want to replicate the failure anymore. I’m now a happy camper (on this issue) at leastbut I’m sure you’ll see more intriguing posts from me as I stumble through the minefield.
-
WSAndrewO
AskWoody LoungerCharlotte
It may be difficult bcause the DB links with ODBC to a Foxpro database. When I get back to work I’ll see what I can do.I have a Macro that has a series of
OPENFORM
OPENQUERY
OPENQUERY
….
statementsThe OPENFORM is the dialog (and is done first thing, then dismissed)
The processing ‘seems’ to work fine until I eventually close Access (ten minutes later) – it goes into a 100% CPU loop at that point.
(I can avoid the lockup by using MsgBox twice in VBA, instead of the form)
I could post the form and its code if that helped. -
WSAndrewO
AskWoody LoungerCharlotte
It may be difficult bcause the DB links with ODBC to a Foxpro database. When I get back to work I’ll see what I can do.I have a Macro that has a series of
OPENFORM
OPENQUERY
OPENQUERY
….
statementsThe OPENFORM is the dialog (and is done first thing, then dismissed)
The processing ‘seems’ to work fine until I eventually close Access (ten minutes later) – it goes into a 100% CPU loop at that point.
(I can avoid the lockup by using MsgBox twice in VBA, instead of the form)
I could post the form and its code if that helped. -
WSAndrewO
AskWoody LoungerIf the first cell is in row 2
=”TCL/” & TEXT(ROW()-1,”000″)&”/05″
will do it – drag down as needed
![]() |
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
-
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
3 hours, 15 minutes ago -
Stay connected anywhere
by
Peter Deegan
3 hours, 16 minutes ago -
Copilot, under the table
by
Will Fastie
1 hour, 54 minutes ago -
The Windows experience
by
Will Fastie
3 minutes ago -
A tale of two operating systems
by
Susan Bradley
2 hours, 1 minute ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
5 hours, 23 minutes ago -
Where’s the cache today?
by
Up2you2
20 hours, 43 minutes ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
13 hours, 29 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
4 hours, 27 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
21 hours, 24 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
1 day, 13 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
1 day, 14 hours ago -
regarding april update and may update
by
heybengbeng
1 day, 15 hours ago -
MS Passkey
by
pmruzicka
17 hours, 29 minutes ago -
Can’t make Opera my default browser
by
bmeacham
1 day, 23 hours ago -
*Some settings are managed by your organization
by
rlowe44
1 day, 9 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
1 day, 22 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
2 days, 17 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
3 days, 2 hours ago -
AI slop
by
Susan Bradley
20 hours, 45 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
3 days, 4 hours ago -
Two blank icons
by
CR2
12 hours, 17 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
14 hours, 15 minutes ago -
End of 10
by
Alex5723
3 days, 15 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
2 days, 13 hours ago -
test post
by
gtd12345
3 days, 21 hours ago -
Privacy and the Real ID
by
Susan Bradley
3 days, 11 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 14 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
4 days, 2 hours ago -
Upgrading from Win 10
by
WSjcgc50
2 days, 13 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.