A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Handle different international time zones for Item.Start and Item.



 
 
Thread Tools Search this Thread Display Modes
  #11  
Old August 5th 08, 02:32 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Handle different international time zones for Item.Start and I

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  
Old August 5th 08, 03:33 PM posted to microsoft.public.outlook.program_vba
masani paresh[_2_]
external usenet poster
 
Posts: 84
Default Handle different international time zones for Item.Start and I

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  
Old August 5th 08, 03:40 PM posted to microsoft.public.outlook.program_vba
masani paresh[_2_]
external usenet poster
 
Posts: 84
Default Handle different international time zones for Item.Start and I

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  
Old August 5th 08, 04:12 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Handle different international time zones for Item.Start and I

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  
Old August 6th 08, 05:27 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Handle different international time zones for Item.Start and I

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 11:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.