-
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. 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
-
Non Apple Keyboards
by
pmcjr6142
3 hours, 38 minutes ago -
How to delete your 23andMe data – The Verge
by
AJNorth
6 hours, 5 minutes ago -
7 common myths about Windows 11 (Microsoft AD)
by
EyesOnWindows
8 hours, 15 minutes ago -
Error updating to Win11 0x8024a205
by
bmeacham
8 hours, 6 minutes ago -
default apps
by
chasfinn
7 hours, 48 minutes ago -
Will MS Works 4 work in MS Win 11?
by
MileHighFlyer
15 hours, 43 minutes ago -
Adding links to text in Word 2000
by
sgeneris
7 hours, 44 minutes ago -
FBI warnings are true—fake file converters do push malware
by
Nibbled To Death By Ducks
9 hours, 21 minutes ago -
Classic and Extended Control Panel — no need to say goodbye
by
Deanna McElveen
2 hours, 25 minutes ago -
Things you can do in 2025 that you couldn’t do in 2024
by
Max Stul Oppenheimer
20 hours, 30 minutes ago -
Revisiting Windows 11’s File Explorer
by
Will Fastie
5 hours, 13 minutes ago -
Planning ahead for migration
by
Susan Bradley
12 minutes ago -
Yahoo mail getting ornery
by
Tom in Az
7 hours, 57 minutes ago -
Is Spectrum discontinuing email service?
by
Peobody
11 hours, 28 minutes ago -
Practice what you preach! A cautionary tale.
by
RetiredGeek
8 hours, 1 minute ago -
Looking for Microsoft Defender Manuals/Tutorial
by
blueboy714
12 hours, 12 minutes ago -
Win 11 24H2 Home or Pro?
by
CWBillow
8 hours, 43 minutes ago -
Bipartisan Effort to Sunset the ‘26 Words That Created the Internet’..
by
Alex5723
2 days, 18 hours ago -
Outlook new and edge do not load
by
cHJARLES a pECKHAM
3 days, 6 hours ago -
Problem using exfat drives for backup
by
Danmc
3 days, 6 hours ago -
I hate that AI is on every computer we have!
by
1bumthumb
2 days, 8 hours ago -
Change Info in the Settings window
by
CWBillow
3 days, 13 hours ago -
Attestation readiness verifier for TPM reliability
by
Alex5723
3 days, 19 hours ago -
Windows Update says that “some settings are managed b your organization”
by
Ed Willers
3 days, 5 hours ago -
Use of Gmail rejected.
by
CBFPD-Chief115
3 days, 6 hours ago -
WuMgr operational questions
by
Tex265
7 hours, 33 minutes ago -
Beijing’s unprecedented half-marathon: Humans vs. humanoids!
by
Alex5723
4 days, 11 hours ago -
New Phishing Campaign Targeted at Mac Users
by
Alex5723
3 days, 11 hours ago -
Backing up Google Calendar
by
CWBillow
4 days, 17 hours ago -
Windows 11 Insider Preview build 27818 released to Canary
by
joep517
5 days, 6 hours ago
Recent blog posts
- Classic and Extended Control Panel — no need to say goodbye
- Things you can do in 2025 that you couldn’t do in 2024
- Revisiting Windows 11’s File Explorer
- Planning ahead for migration
- Woody Leonhard (1951–2025)
- What I learned from Woody Leonhard
- Windows Settings today
- Mail Merge magic in Microsoft Word
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.