-
WSrrdavis
AskWoody LoungerThanks for the response, but that really doesn’t answer the issue–downgrading just to make an app work properly indicates that the app needs to be repaired. AND…I no longer have the media the downgrade. Is anyone else having such a problem?
-
WSrrdavis
AskWoody LoungerOh well, it was worth a shot.
Does outlook work in Safe Mode?
http://www.outlook-tips.net/beginner-user/start-outlook-in-safe-mode/Did you try an Office Repair install?
http://office.microsoft.com/en-gb/outlook-help/repair-office-programs-HA010357402.aspxJerry
Yes, the program seems to work fine in Safe Mode, but as stated, after disabling all my addins, the problem still remains. I’m using Outlook 2010, so I don’t have any .dat files to worry about. And no error messages are displayed, either in the event viewer or on the screen itself. This is the strangest thing.
-
WSrrdavis
AskWoody LoungerYes, I have rebooted (many times) and I have repaired Office. Behavior remains.
-
WSrrdavis
AskWoody LoungerThank you for your reply. Actually, I am connected to an Exchange Server and have an OST file. I have renamed my old OST file, forcing Outlook to create a new file. I have also created a separate profile, in case it was my profile that went bad. Neither of these things have resolved the issue.
-
WSrrdavis
AskWoody LoungerWow, I forgot all about using a field code! I use to be quite the Word guru in my circles, but apparently not anymore. The old adage “Use it or lose it” applies here. Thanks for the help.
-
WSrrdavis
AskWoody LoungerNow that I’ve finally had some time to get back to this project and look/experiement with it further, I think I’ve ruled out the xlsheet variable being the problem–as far as I can tell. It is tripping up on the Selection word. Legare, I agree with you that I don’t have to select a range in order to work with it. However, with some of the manipulation I am doing it is difficult to avoid it completely. But you are right, my example code could (should?) have been written more succinctly.
I have been “Watching” the xlsheet (and related) variables and they appear to be set correctly throughout the running of the code. However, the second time through the loop I’ve created, I get the With block variable not set, as I reported. I’ve determined that Excel is somehow not “Selecting” the range. See the graphic. Selection is set to Nothing, even though the .Range(“A2”).Select line was already processed. Is there a reason why .Select would not, uh, select. Surely you can you have a With… statement nesting inside another With… statement. This is the case here.
Again, thanks for your responses, Rory and Legare. Any other sugguestions.
-
WSrrdavis
AskWoody LoungerNow that I’ve finally had some time to get back to this project and look/experiement with it further, I think I’ve ruled out the xlsheet variable being the problem–as far as I can tell. It is tripping up on the Selection word. Legare, I agree with you that I don’t have to select a range in order to work with it. However, with some of the manipulation I am doing it is difficult to avoid it completely. But you are right, my example code could (should?) have been written more succinctly.
I have been “Watching” the xlsheet (and related) variables and they appear to be set correctly throughout the running of the code. However, the second time through the loop I’ve created, I get the With block variable not set, as I reported. I’ve determined that Excel is somehow not “Selecting” the range. See the graphic. Selection is set to Nothing, even though the .Range(“A2”).Select line was already processed. Is there a reason why .Select would not, uh, select. Surely you can you have a With… statement nesting inside another With… statement. This is the case here.
Again, thanks for your responses, Rory and Legare. Any other sugguestions.
-
WSrrdavis
AskWoody LoungerHans, you usually have the information I need. Thanks again.
-
WSrrdavis
AskWoody LoungerJan–
Thanks for the response. I was aware that an error cut the procedure short, but I thought that if there was an error handler in that procedure, it handled the error instead of sending it back tot he call procedure. I don’t think this is what happened, however. I tried what you recommended–that is, put a breakpoint after the point where the procedure just took off. The breakpoint stopped the procedure from running and I could continue processing line by line. (I then figured out that it was erroring as some later point, which has not been corrected.) However, I am still stumped by the fact that it just takes off at this one point. I had another project do the same thing, but I never follow up on it.
As a test, I moved the breakpoint you recommended down in the procedure by a few lines and found that once the code takes off, the other lines do process, just not line by line. I know how to get around this now, but I’m just wondering if anyone knew why it was happening like that.
-
WSrrdavis
AskWoody LoungerJan–
Thanks for the response. I was aware that an error cut the procedure short, but I thought that if there was an error handler in that procedure, it handled the error instead of sending it back tot he call procedure. I don’t think this is what happened, however. I tried what you recommended–that is, put a breakpoint after the point where the procedure just took off. The breakpoint stopped the procedure from running and I could continue processing line by line. (I then figured out that it was erroring as some later point, which has not been corrected.) However, I am still stumped by the fact that it just takes off at this one point. I had another project do the same thing, but I never follow up on it.
As a test, I moved the breakpoint you recommended down in the procedure by a few lines and found that once the code takes off, the other lines do process, just not line by line. I know how to get around this now, but I’m just wondering if anyone knew why it was happening like that.
-
WSrrdavis
AskWoody LoungerLegare and Rory–
Thanks for your responses. First, xlsheet is defined as a worksheet object variable as follows: [indent]
Set xlApp = New Excel.Application
Set xlbook = xlApp.Workbooks.Add
Set xlsheet = xlbook.ActiveSheet
[/indent] I have been able to work around the With… problem by getting rid of all my With… statements. I have begun to add them back one at a time, but that should not have been a problem. I’m sure this has significantly affected my running time, however.
-
WSrrdavis
AskWoody LoungerLegare and Rory–
Thanks for your responses. First, xlsheet is defined as a worksheet object variable as follows: [indent]
Set xlApp = New Excel.Application
Set xlbook = xlApp.Workbooks.Add
Set xlsheet = xlbook.ActiveSheet
[/indent] I have been able to work around the With… problem by getting rid of all my With… statements. I have begun to add them back one at a time, but that should not have been a problem. I’m sure this has significantly affected my running time, however.
-
WSrrdavis
AskWoody LoungerAgain, thanks for your time.
All of my code is in the same Access .mdb module. I have “Watched” my variables as I have stepped through the procedure. As soon as I exit one procedure and return to another, the references on the watched variables turn to “out of context”.
Although I still have some testing to do, I think I’ve found a workaround to this problem by saving the doc prior to the end of the procedure and then using the Set doc = Documents.Open method to open it back up once I need it again. There’s got to be a cleaner way to do that, but I think it works.
-
WSrrdavis
AskWoody LoungerAgain, thanks for your time.
All of my code is in the same Access .mdb module. I have “Watched” my variables as I have stepped through the procedure. As soon as I exit one procedure and return to another, the references on the watched variables turn to “out of context”.
Although I still have some testing to do, I think I’ve found a workaround to this problem by saving the doc prior to the end of the procedure and then using the Set doc = Documents.Open method to open it back up once I need it again. There’s got to be a cleaner way to do that, but I think it works.
-
WSrrdavis
AskWoody LoungerThanks for the response. I really appreciate your time.
You are right about declaring a variable as Public in the declarations section of the module makes the variable available throughout the module. I had done this when declaring my Wrd and doc variables. However, the references to the objects are broken once I leave that module. I’m assume that simple values persist, but references to objects do not. Here is generally what happens:
Procedure 1 calls Procedure 2. Procedure 2 sets Wrd and doc to their objects and transfers content to those objects. Procedure 2 then ends and control is returned back to Procedure 1. I would have thought that the reference would have persisted back to Procedure 1. This is not the case.
I even changed the code around so that the references were set in Proc 1 and the processing using those references occur in Proc 2. Either way, I lose the references when moving between procedures.
Does anyone have any other ideas?
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
44 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 hours, 30 minutes ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
3 hours, 59 minutes ago -
Are manuals extinct?
by
Susan Bradley
6 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
13 hours, 7 minutes ago -
Network Issue
by
Casey H
12 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
1 day, 1 hour ago -
May 2025 Office non-Security updates
by
PKCano
1 day, 1 hour ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
1 day, 3 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
4 hours, 21 minutes ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
1 day, 5 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
1 day, 5 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
1 day, 13 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
5 hours, 26 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
2 days ago -
How much I spent on the Mac mini
by
Will Fastie
23 hours, 48 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
3 hours, 27 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
2 days, 6 hours ago -
Setting up Windows 11
by
Susan Bradley
1 day, 1 hour ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
2 days, 1 hour ago -
Powershell version?
by
CWBillow
2 days, 2 hours ago -
SendTom Toys
by
CWBillow
13 hours, 27 minutes ago -
Add shortcut to taskbar?
by
CWBillow
2 days, 6 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
2 days, 22 hours ago -
How can I install Skype on Windows 7?
by
Help
2 days, 21 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
2 days, 4 hours ago -
We live in a simulation
by
Alex5723
3 days, 13 hours ago -
Netplwiz not working
by
RetiredGeek
2 days, 23 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
4 days, 1 hour 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.