![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
#11
|
|||
|
|||
![]()
Is Redemption registered on that machine? Does New work?
Are you running any script stopper from A-V or firewall software that might be preventing CreateObject() from working? -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "masani paresh" wrote in message ... Dmitry, You are right. I used following code to get the time zone but it says "ActiveX component cannot create object: Redeption.RDOSession" Could you help me. set Session = CreateObject("Redemption.RDOSession") set Timezones = Session.Timezones for each TZ in Timezones MsgBox TZ.Name next Thanks, Paresh |
Ads |
#12
|
|||
|
|||
![]()
Do you always get the same prompt:
Not always. I got it first time when I ran the customized outlook form. And I also got it when I ran it after restarting my machine. Thanks, Paresh "Ken Slovak - [MVP - Outlook]" wrote: It shouldn't if WSH is installed already. I never get that prompt when instantiating a WSH object. What happens if you try that line from a simple VBS file you can create using Notepad? Do you always get the same prompt: Set oShell = CreateObject("WScript.Shell") -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "masani paresh" wrote in message ... Hi Ken, I have written following steps to get the UTC value of current time by reading reg keys. But when it executes the set oShell = CreateObject("WScript.Shell") statement, it show the dialog box for confirming some installation. I have to click yes then it will proceed and works fine. Could you tell me how to make this statement to work silently. startTime = Item.Start endTime = Item.End set oShell = CreateObject("WScript.Shell") atb = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\" &_ "Control\TimeZoneInformation\ActiveTimeBias" offsetMin = oShell.RegRead(atb) startTime = dateadd("n", offsetMin, startTime) endTime = dateadd("n", offsetMin, endTime) startTime = Format(startTime,"yyyy-mm-dd" & "T" & "hh:mm:ss" & "Z") endTime = Format(endTime,"yyyy-mm-dd" & "T" & "hh:mm:ss" & "Z") MsgBox startTime & vbcrlf & endTime Thanks, Paresh Do you always get the same prompt: |
#13
|
|||
|
|||
![]()
How do I verify whether Redemption registered or not on my machine?
Thanks, Paresh "Ken Slovak - [MVP - Outlook]" wrote: Is Redemption registered on that machine? Does New work? Are you running any script stopper from A-V or firewall software that might be preventing CreateObject() from working? -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "masani paresh" wrote in message ... Dmitry, You are right. I used following code to get the time zone but it says "ActiveX component cannot create object: Redeption.RDOSession" Could you help me. set Session = CreateObject("Redemption.RDOSession") set Timezones = Session.Timezones for each TZ in Timezones MsgBox TZ.Name next Thanks, Paresh |
#14
|
|||
|
|||
![]()
One way would be just to register it. Another would be to look in the
registry under HKCR and see if the Redemption classes are registered there. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "masani paresh" wrote in message ... How do I verify whether Redemption registered or not on my machine? Thanks, Paresh |
#15
|
|||
|
|||
![]()
Did you download it from the URL in my signature?
-- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "masani paresh" wrote in message ... How do I verify whether Redemption registered or not on my machine? Thanks, Paresh "Ken Slovak - [MVP - Outlook]" wrote: Is Redemption registered on that machine? Does New work? Are you running any script stopper from A-V or firewall software that might be preventing CreateObject() from working? -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "masani paresh" wrote in message ... Dmitry, You are right. I used following code to get the time zone but it says "ActiveX component cannot create object: Redeption.RDOSession" Could you help me. set Session = CreateObject("Redemption.RDOSession") set Timezones = Session.Timezones for each TZ in Timezones MsgBox TZ.Name next Thanks, Paresh |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how do I automatically display start time in calendar item | Ed B. | Outlook - Calandaring | 0 | March 28th 08 12:40 PM |
Item.Save and Item.Close Script causes Outlook 2007 to Crash | Rayyan | Outlook - Using Forms | 6 | November 25th 06 03:14 AM |
Saving exception item in recurring appointment item fails | Dikbill | Outlook and VBA | 2 | July 11th 06 03:59 PM |
How do I display item start times? | JessChamp | Outlook - Calandaring | 0 | May 2nd 06 11:16 PM |
How can I set a calender appointment start and end time zones | teebaldwin | Outlook - Calandaring | 3 | March 30th 06 05:28 PM |