I am trying to move an email object from one variable to another.
The first is
$todays_email_msg.item($TodaysItemCounter)
and when I type this in I get the email that I expected.
The second is
$email_msgs.item($InboxMsgCounter)
and when I type this in I get the email that I expected.
However when I try and execute
$todays_email_msg.item($TodaysItemCounter)=$email_msgs.item($InboxMsgCounter)
I get the error : Method invocation failed because [System.__ComObject] doesn't contain a method named
'item'.
Any idea why this fails and how I can copy from one to another
thanks
-john
I "Method invocation failed because [System._ComObject] doesn't contain a method named 'item'. $todays_email_msg.item($TodaysItemCounter) $todays_email_msg.item($TodaysItemCounter) = $email_msgs.item($InboxMsgCounter)
Any idea why this fail
$todays_email_msg.item($TodaysItemCounter) = $email_msgs.item($InboxMsgCounter)
$todays_email_msg.item($TodaysItemCounter) = $email_msgs.item($InboxMsgCounter)$todays_email_msg.item($TodaysItemCounter)
$todays_email_msg.item($TodaysItemCounter)
$todays_email_msg.item($TodaysItemCounter) $todays_email_msg.item($TodaysItemCounter)