Thread: Copying a view?
View Single Post
  #7  
Old January 26th 07, 12:43 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Copying a view?

Pickups is a subfolder of Deliveries? Use the Folders collection again:

Set pickupFolder = objName.GetDefaultFolder(olPublicFoldersAllPublicF olders).Folders("Deliveries").Folders("Pickups")

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Linn Kubler" wrote in message ...
Not sure where I look for the scoping that you reference. When I go into
the custom view organizer it shows all my views as "Can Be Used On: This
Folder" and "View Type: Table". Is that what you mean?

I was thinking about possible data corruption when I made the comment about
"integrity".

I'm trying to write the macro that you suggest but I'm having trouble
figuring out how to reference a subfolder. Here is how I reference the
parent folder:
objName.GetDefaultFolder(olPublicFoldersAllPublicF olders).Folders("Deliveries")

The subfolder is called "Pickups" but the sytax just isn't coming to me.

Thanks,
Linn

"Sue Mosher [MVP-Outlook]" wrote in message
...
My guess is that the view either isn't correctly scoped to the folder ("on
this folder, visible to everyone") or that it's been modified and what's
getting copied is the user's cached copy. It's a good idea to write a little
VBA macro that sets View.LockUserChanges = True.

Custom field definitions never copy. Add them manually or write code to
create an item in the folder and add them to the item.

I don't know what you mean by "integrity."

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Linn Kubler" wrote in message
...
Thanks Sue,

I'm trying to correct a problem with my public folders. I tried copying
the
entire folder but the problem just moved to the new folder too. If I try
simply creating a new calendar type folder, copying records seems to work
but I don't get my customized layout or the custom field definitions. It
definately looks like a problem with my custom view or form I created.

It's odd though, it was working just fine until this week Monday. The
only
changes I've made were to add a new item to a drop down list on the form
and
I installed a new server on the network. It's not an Exchange server
either.

Is there any way I can test the integrity of my custom fields or the view?
Wonder if something is corrupted.



Ads