怎样调用或者怎样设计outlook的calendar的图形界面呢?图形界面如下:1.可不可以调用出来呢?2.如果不行,自己设计的话用C#好,还是用VB好呢,我手头有一个现成的C#编的,但是本人不懂C#,而且现在的我的工作还是用VBA编的。。。希望大家给点建议,谢谢!!! 图形 界面 Outlook C# [解决办法]
Quote: 引用:Quote: 引用:Quote: 引用:看能不能帮到你。Sub disCalendar()Dim myOlApp As New Outlook.ApplicationDim myExplorers As Outlook.ExplorersDim myOlExpl As Outlook.ExplorerDim myFolder As Outlook.MAPIFolderSet myExplorers = myOlApp.ExplorersSet myFolder = myOlApp.GetNamespace("MAPI").GetDefaultFolder _ (olFolderCalendar)Set myOlExpl = myExplorers.Add _ (myFolder, olFolderDisplayNoNavigation)myOlExpl.DisplayEnd Sub谢谢斑竹的回答!看来我的话我没说清楚,我希望能把这个图形界面从outlook剥离出来,作为一个独立的模块供我自己使用。斑竹这个代码还是会和我现在的outlook的日历事项混合在一起,不知道能不能剥离开来,然后把数据保存在我希望的地方或者上传到数据库中。我发现我的这个想法实际表现出我好懒哦。。。。哈哈只把这个界面剥离出来,可能性不大。好的,谢谢斑竹!手头有这个的日历界面的C#代码,那么我只好转向C#了。。。可是C#不会,好吧,看来骚年得继续努力了。
Quote: 引用:Quote: 引用:看能不能帮到你。Sub disCalendar()Dim myOlApp As New Outlook.ApplicationDim myExplorers As Outlook.ExplorersDim myOlExpl As Outlook.ExplorerDim myFolder As Outlook.MAPIFolderSet myExplorers = myOlApp.ExplorersSet myFolder = myOlApp.GetNamespace("MAPI").GetDefaultFolder _ (olFolderCalendar)Set myOlExpl = myExplorers.Add _ (myFolder, olFolderDisplayNoNavigation)myOlExpl.DisplayEnd Sub谢谢斑竹的回答!看来我的话我没说清楚,我希望能把这个图形界面从outlook剥离出来,作为一个独立的模块供我自己使用。斑竹这个代码还是会和我现在的outlook的日历事项混合在一起,不知道能不能剥离开来,然后把数据保存在我希望的地方或者上传到数据库中。我发现我的这个想法实际表现出我好懒哦。。。。哈哈只把这个界面剥离出来,可能性不大。
Quote: 引用:看能不能帮到你。Sub disCalendar()Dim myOlApp As New Outlook.ApplicationDim myExplorers As Outlook.ExplorersDim myOlExpl As Outlook.ExplorerDim myFolder As Outlook.MAPIFolderSet myExplorers = myOlApp.ExplorersSet myFolder = myOlApp.GetNamespace("MAPI").GetDefaultFolder _ (olFolderCalendar)Set myOlExpl = myExplorers.Add _ (myFolder, olFolderDisplayNoNavigation)myOlExpl.DisplayEnd Sub谢谢斑竹的回答!看来我的话我没说清楚,我希望能把这个图形界面从outlook剥离出来,作为一个独立的模块供我自己使用。斑竹这个代码还是会和我现在的outlook的日历事项混合在一起,不知道能不能剥离开来,然后把数据保存在我希望的地方或者上传到数据库中。我发现我的这个想法实际表现出我好懒哦。。。。哈哈
看能不能帮到你。Sub disCalendar()Dim myOlApp As New Outlook.ApplicationDim myExplorers As Outlook.ExplorersDim myOlExpl As Outlook.ExplorerDim myFolder As Outlook.MAPIFolderSet myExplorers = myOlApp.ExplorersSet myFolder = myOlApp.GetNamespace("MAPI").GetDefaultFolder _ (olFolderCalendar)Set myOlExpl = myExplorers.Add _ (myFolder, olFolderDisplayNoNavigation)myOlExpl.DisplayEnd Sub
Sub disCalendar()Dim myOlApp As New Outlook.ApplicationDim myExplorers As Outlook.ExplorersDim myOlExpl As Outlook.ExplorerDim myFolder As Outlook.MAPIFolderSet myExplorers = myOlApp.ExplorersSet myFolder = myOlApp.GetNamespace("MAPI").GetDefaultFolder _ (olFolderCalendar)Set myOlExpl = myExplorers.Add _ (myFolder, olFolderDisplayNoNavigation)myOlExpl.DisplayEnd Sub