Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2021, 07:00 AM
maxscott maxscott is offline Namespace Folder Name Changed Windows 10 Namespace Folder Name Changed Office 2019
Novice
Namespace Folder Name Changed
 
Join Date: Mar 2021
Posts: 2
maxscott is on a distinguished road
Default Namespace Folder Name Changed

I have been writing some VBA to file my emails. Something strange has happened though with my namespace folders.
I had 2 accounts - one abc@abc.co.uk and xyz@xyz.co.uk. Each has a folder under my application referenced with this code...



Dim olapp As Object
Dim olNS As Object
Dim oFolder As Object

Set olapp = CreateObject("outlook.application")
Set olNS = olapp.GetNamespace("MAPI")

I could then reference each with set ofolder=olNS.folders("abc@abcdef.co.uk") for instance. With older I then had olfolder.folders("Inbox") etc.

Both the primary accounts appeared in my outlook window named abc@abc.co.uk and xyz@xyz.co.uk respectively.

I then have some code which references folders and emails below these inboxes. But now the references have changed to olns.folders("inbox").folders("inbox") and the names in my outlook window are both shown as Inbox.

I don't see how I can have changed these but what is worse i can't change them back. If I try olns.folders(1).name="abc@abc.co.uk" system wonlt accept anything after the "@" and thus ? olns.folders(1).name just gives "abc".

Is there something specifically different about namespace folders?

Many thanks
Reply With Quote
  #2  
Old 03-25-2021, 07:46 AM
maxscott maxscott is offline Namespace Folder Name Changed Windows 10 Namespace Folder Name Changed Office 2019
Novice
Namespace Folder Name Changed
 
Join Date: Mar 2021
Posts: 2
maxscott is on a distinguished road
Default

I have solved my own problem.

Difference between ofolder = .... and SET ofolder = ...

Also it appears number of characters outlook displays in folder name when you chnage that name is limited to number of characters that existed before the change until you quit and restart.

Thanks

Max
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
DOC icon has changed to folder persius Word 7 01-02-2020 08:51 PM
Namespace Folder Name Changed Empty Folder tool changed behavior RetiredCHE Outlook 0 07-29-2017 10:08 AM
Problem adding a namespace for customxml slaycock Word VBA 12 06-15-2017 04:45 PM
How to constantly and automatically copy the contacts from a shared folder to my private folder? Paulo Outlook 0 08-16-2015 12:06 PM
Namespace Folder Name Changed Outlook Folder Pane has changed on it's own magfo Outlook 1 10-31-2014 04:46 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:08 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft