Quantcast
Channel: Microsoft Community - Super Fresh
Viewing all 1237233 articles
Browse latest View live

Outlook2016 Desktop startet nicht. Nur die E-Mail App unter Office365

$
0
0
Outlook2016 startet seit dem 21.06.2017 nicht fehlerfrei und bricht nach wenigen Klicks ab. Die E-Mail App unter Office 365 arbeitet soweit ich erkennen kann einwandfrei. Nervt trotzdem! 

Internet explorer con windows 10 y Microsoft Edge

$
0
0
No se exactamente de se qué actualización, pero Internet explorer me dejó de funcionar en una de ellas, he desinstalado todos los exploradores por si pudiera haber algún conflicto, también he probado desconectando el antivirus, ahora lo único que tengo es Edge, pero necesito internet explorer pq es lo único que me vale para realizar unos cursos online en los que me tengo q identificar con carnet con chip. En características está perfectamente habilitado internet explorer pero cuando le doy a la aplicación se queda pensando unos segundos y no abre nada, estoy desesperado, he intentado volver a un punto anterior y tampoco.

Windows 10 Update nicht möglich(Juni2017)

$
0
0

Hallo

Seit Tagen plage ich mich mit dem juni 2017 Update rum er installiert mir keines davon.

Antivirus programm wurde deinstalliert,ccleaner wurde deinstalliert,Systemwiederherstellung wurde gemacht von einem Tag weit vor den Updates.Sonst keine fremdprogramme installiert die Stören könnten.

Auch mehrmals wurde die problembehandlung ausgeführt für updates.Manuelles downloaden der updates brachte auch nichts er installiert sie nicht.

Windows Neu aufsetzen werde ich sicher nicht.Es handelt sich um diese beiden Updates:

2017-06 Kumulatives Update für Windows 10 Version 1703 für x64-basierte Systeme (KB4022725)

2017-06 Update für Windows 10 Version 1703 für x64-basierte Systeme (KB4022405)

Habt ihr vieleicht noch einen Rat?Vielen dank

Cancellare definitivamente file e cartelle dall’hard disk dei PC Windows

$
0
0
Salve,mi consigliate un programma facile,gratuito ed in italiano compatibile con Windows 10 per cancellare definitivamente file o cartelle in maniera tale che questi non possano esser più recuperati?Ho letto che quando elimino i file tramite il cestino di Windows, questi non vengono effettivamente rimossi dall’hard disk.

Cannot add profile picture

$
0
0

Hi, does anyone knows why the option to add a profile picture is not working (click doesn't work).

Is it because I don't receive any SMS from Skype to verify my phone? I tried from the  app and from the web.

Can Skype take over sending SMS instead of AT&T? My new phone doesn't send SMS and AT&T is still working on it.

Thanks a lot for your help

Bienestar Natural Maria

CDMX

Trying to get BODY from open Outlook 2016 message into Access database

$
0
0

Hi all,

I am trying to setup a mechanism, where we take a currently open email message in Outlook 2016, that has some info
in the BODY of the message (First Name, Last Name, Address, Phone). Then, take
that body and process it and put it into some fields in an access database. We
are just trying to figure out the lines of code to fill a variable in with
the contents of an open Outlook 2016 email message, by clicking a button in
Access 2016. This is a shared office mailbox.

 I am a newbie to VB. I did not develop the original code. Any help would be appreciated. Here is the full code (line with error is in blue). This code was working fine with Outlook 2010 and Access 2010. Once my environment was upgraded to Outlook 365 and Access 365 the error began (strEmailbody = ActiveInspector.CurrentItem.Body) when I click on the "Get from email" automation button in Access. Normally, an email with a certain subject line needs to open in Outlook along with a new record in Access to automatically import the fields from the outlook form to the Access database fields with the "Get from email" automation button.

here is the code that we currently have from 2010 to try to get the body.

Any thoughts?

Debug error code highlights: strEmailbody = ActiveInspector.CurrentItem.Body
Access Database gives Error message is a runtime error 287

Here is the larger portion of the Code:

 

 'Module requirements:
'This Module1
'Form - "RAT Input Form"
'user must have RAT Input Form open!
'Report - "RAT Email Concurrance Template - GM"
'Query - "Query Menu - SEID Query - GM"
'if user does not have a c:\temp folder, it will be created

Option Compare Database
Option Explicit

Sub GenerateConfEmail()
'exports a report as RTF and pastes it into an email
Dim objOutlookApp As Outlook.Application
Dim objEmailform As Outlook.MailItem
Dim objWordApp As Word.Application
Dim objReportOutput As Word.Document
Dim strEmailSubject As String
Dim dateCurrentTime As Date
Dim i As Integer
'create objects for outlook/word
Set objOutlookApp = CreateObject("Outlook.Application")
Set objEmailform = objOutlookApp.CreateItem(olMailItem)
Set objWordApp = CreateObject("Word.Application")

DoCmd.OpenReport reportname:="RAT Email Concurrance Template - GM", View:=acViewPreview
DoCmd.OutputTo objecttype:=acOutputReport, outputformat:=acFormatRTF, outputfile:="c:\temp\tempexp.doc"
DoCmd.Close acReport, "RAT EMAIL Concurrance Template - GM"
'temp file stored to local c:\temp folder
Set objReportOutput = objWordApp.Documents.Open("c:\temp\tempexp.doc")

objWordApp.Selection.WholeStory
objWordApp.Selection.Copy

objEmailform.Body = ""

BlockInput True
objEmailform.Display
'pause (approx 3 seconds)
dateCurrentTime = Now
Do While (Now - dateCurrentTime) < 0.00006472
Loop

If objOutlookApp.Version Like "14*" Then
'using sendkeys to put info in mail
SendKeys "%u", True
SendKeys "{TAB}", True
SendKeys "^v", True
Else
SendKeys "%j", True
SendKeys "{TAB}", True
SendKeys "^v", True
End If
BlockInput False

On Error Resume Next
objEmailform.Recipients.Add Forms("RAT Input Form").Controls("User Email")
objEmailform.Recipients.Add Forms("RAT Input Form").Controls("Mgr Email")
objEmailform.Recipients.Add Forms("RAT Input Form").Controls("RAC Email")

strEmailSubject = "Request for concurrence - " & Screen.ActiveForm.Controls("User First Name") & " " & Screen.ActiveForm.Controls("User Last Name") & " - IRAP Order #" & Screen.ActiveForm.Controls("Record number")
objEmailform.Subject = strEmailSubject
objEmailform.SentOnBehalfOfName = "*IRAP"
objReportOutput.Close savechanges:=False
objWordApp.Quit
'do not want to autosend mail - user will review
objEmailform.Display

End Sub
Sub FillRATFromEmail()
'gets the entries for RAT form from the email to *IRAP
Dim objOutlookApp As Outlook.Application
Dim strEmailbody As String
Dim lStartPos As Long
Dim strCurrentText As String
Dim lStartNumber As Long
Dim lEndNumber As Long
Dim strAECategory As String
Dim strPrimaryAECategory As String
Dim byteIsBlind As Byte
Dim byteIsLV As Byte
Dim byteIsDeaf As Byte
Dim byteIsHOH As Byte
Dim byteISLD As Byte
Dim byteIsMob As Byte
Dim rectempset As Recordset
Dim recEmpAssignRecs As Recordset

Dim i As Integer
'the items IN ACCESS we want to return from the email
'each string must match the access field name perfectly
Dim STRCheckedItems(23) As String
STRCheckedItems(0) = "User First Name"
STRCheckedItems(1) = "User Last Name"
STRCheckedItems(2) = "User Email"
STRCheckedItems(3) = "SEID"
STRCheckedItems(4) = "User Phone"
STRCheckedItems(5) = "User Ext"
STRCheckedItems(6) = "User Fax Number"
STRCheckedItems(7) = "Mgr First Name"
STRCheckedItems(8) = "Mgr Last Name"
STRCheckedItems(9) = "Mgr phone"
STRCheckedItems(10) = "Mgr Ext"
STRCheckedItems(11) = "Mgr Email"
STRCheckedItems(12) = "Address 2"
STRCheckedItems(13) = "Functional Area"
STRCheckedItems(14) = "Address 1"
STRCheckedItems(15) = "Zip"
STRCheckedItems(16) = "City"
STRCheckedItems(17) = "State"
STRCheckedItems(18) = "RA Number"
STRCheckedItems(19) = "RAC First Name"
STRCheckedItems(20) = "RAC Last Name"
STRCheckedItems(21) = "RAC Email"
STRCheckedItems(22) = "RAC Phone"
STRCheckedItems(23) = "Work Schedule"
Dim STRReturnedItems(23) As String

'if the current record isn't blank, abort
If IsNull(Screen.ActiveForm.Controls("User First Name")) Then
Else
Select Case Screen.ActiveForm.Controls("User First Name")
Case "", "Blank", "BLANK", "blank"
Case Else
MsgBox ("You must use a blank or newly created record.")
Exit Sub
End Select
End If
'activeinspector.currentitem = the active task/email open in outlook
'if there isnt one, abort
If ActiveInspector Is Nothing Then
MsgBox ("You must open the Request for Adaptive Equipment email.")
Exit Sub
Else
End If

'if the email isn't a request for adaptive equipment, abort
If Left(ActiveInspector.CurrentItem.Subject, 30) <> "Request for Adaptive Equipment" Then
MsgBox ("You must open the Request for Adaptive Equipment email.")
Exit Sub
Else
End If


strEmailbody = ActiveInspector.CurrentItem.Body


'email body is plain text - must use string searches to get data
'will not be perfect - users should review
On Error Resume Next
'get name
lStartNumber = InStr(1, strEmailbody, "Employee Name:")
lEndNumber = InStr(1, strEmailbody, "Employee E-Mail:")
strCurrentText = Mid(strEmailbody, lStartNumber + 18, lEndNumber - lStartNumber - 20)
STRReturnedItems(0) = Proper(Left(strCurrentText, InStr(1, strCurrentText, " ") - 1))
STRReturnedItems(1) = Proper(Mid(strCurrentText, InStrRev(strCurrentText, " ") + 1))
'get email
lStartNumber = InStr(1, strEmailbody, "Employee E-Mail:")
lEndNumber = InStr(1, strEmailbody, "Employee SEID No.:")
strCurrentText = Mid(strEmailbody, lStartNumber + 20, lEndNumber - lStartNumber - 22)
STRReturnedItems(2) = Proper(strCurrentText)
'get seid
lStartNumber = InStr(1, strEmailbody, "Employee SEID No.:")
lEndNumber = InStr(1, strEmailbody, "Employee Phone No.:")
strCurrentText = Mid(strEmailbody, lStartNumber + 22, lEndNumber - lStartNumber - 24)
STRReturnedItems(3) = UCase(Left(strCurrentText, 7))
'get emp phone and ext
lStartNumber = InStr(1, strEmailbody, "Employee Phone No.:")
lEndNumber = InStr(1, strEmailbody, "Schedule:")
strCurrentText = Mid(strEmailbody, lStartNumber + 23, lEndNumber - lStartNumber - 25)
If InStr(1, strCurrentText, "x") > 0 Then
STRReturnedItems(4) = Left(strCurrentText, InStr(1, strCurrentText, "x") - 1)
STRReturnedItems(5) = Mid(strCurrentText, InStr(1, strCurrentText, "x") + 1)
Else
STRReturnedItems(4) = strCurrentText
End If
'get work schedule
lStartNumber = InStr(1, strEmailbody, "Schedule:")
lEndNumber = InStr(1, strEmailbody, "Manager Name:")
strCurrentText = Mid(strEmailbody, lStartNumber + 13, lEndNumber - lStartNumber - 15)
STRReturnedItems(23) = strCurrentText
'get manager first and last name
lStartNumber = InStr(1, strEmailbody, "Manager Name:")
lEndNumber = InStr(1, strEmailbody, "Manager Phone No.:")
strCurrentText = Mid(strEmailbody, lStartNumber + 17, lEndNumber - lStartNumber - 19)
STRReturnedItems(7) = Proper(Left(strCurrentText, InStr(1, strCurrentText, " ") - 1))
STRReturnedItems(8) = Proper(Mid(strCurrentText, InStrRev(strCurrentText, " ") + 1))
'get mgr phone and ext
lStartNumber = InStr(1, strEmailbody, "Manager Phone No.:")
lEndNumber = InStr(1, strEmailbody, "Manager E-Mail:")
strCurrentText = Mid(strEmailbody, lStartNumber + 22, lEndNumber - lStartNumber - 24)
If InStr(1, strCurrentText, "x") > 0 Then
STRReturnedItems(9) = Left(strCurrentText, InStr(1, strCurrentText, "x") - 1)
STRReturnedItems(10) = Mid(strCurrentText, InStr(1, strCurrentText, "x") + 1)
Else
STRReturnedItems(9) = strCurrentText
End If

'get POD
lStartNumber = InStr(1, strEmailbody, "Mailing Address:")
lEndNumber = InStr(1, strEmailbody, "City:")
strCurrentText = Mid(strEmailbody, lStartNumber + 20, lEndNumber - lStartNumber - 22)
STRReturnedItems(12) = strCurrentText


'get zip
lStartNumber = InStr(1, strEmailbody, "Zip:")
lEndNumber = InStr(1, strEmailbody, "Disability Group:")
strCurrentText = Mid(strEmailbody, lStartNumber + 8, lEndNumber - lStartNumber - 10)
STRReturnedItems(15) = strCurrentText
'get city
lStartNumber = InStr(1, strEmailbody, "City:")
lEndNumber = InStr(1, strEmailbody, "State:")
strCurrentText = Mid(strEmailbody, lStartNumber + 9, lEndNumber - lStartNumber - 11)
STRReturnedItems(16) = Proper(strCurrentText)
'get state
lStartNumber = InStr(1, strEmailbody, "State:")
lEndNumber = InStr(1, strEmailbody, "Zip:")
strCurrentText = UCase(Mid(strEmailbody, lStartNumber + 10, lEndNumber - lStartNumber - 12))
Select Case strCurrentText
Case Is = "WY", "WV", "WI", "WA", "VT", "VA", "UT", "TX", "TN", "SD", "SC", "RI", "PR", "PA", "OR", "OK", "OH", "NY", "NV", "NM", "NJ", "NH", "NE", "ND", "NC", "MT", "MS", "MO", "MN", "MI", "ME", "MD", "MA", "LA", "KY", "KS", "IN", "IL", "ID", "IA", "HI", "GA", "FL", "DE", "DC", "CT", "CO", "CA", "AZ", "AR", "AL", "AK"
STRReturnedItems(17) = UCase(strCurrentText)
Case Else
STRReturnedItems(17) = ""
End Select

'RA information will not be shown on the refresh form
If Right(ActiveInspector.CurrentItem.Subject, 7) = "Refresh" Then
Screen.ActiveForm.Controls("Demand") = "Refresh"

'get mail stop/room
lStartNumber = InStr(1, strEmailbody, "Mail Stop / Room No.:")
lEndNumber = InStr(1, strEmailbody, "Mailing Address:")
strCurrentText = Mid(strEmailbody, lStartNumber + 25, lEndNumber - lStartNumber - 27)
STRReturnedItems(14) = strCurrentText
lStartNumber = InStr(1, strEmailbody, "Disability Group:")
lEndNumber = InStr(1, strEmailbody, "Organization:")
strAECategory = Trim(Mid(strEmailbody, lStartNumber + 21, lEndNumber - lStartNumber - 23))
strPrimaryAECategory = strAECategory
'get functional area
lStartNumber = InStr(1, strEmailbody, "Organization:")
lEndNumber = InStr(1, strEmailbody, "Product Being Refreshed:")
If lEndNumber - lStartNumber > 90 Then lEndNumber = InStr(1, strEmailbody, "RA Coordinator:")
strCurrentText = Mid(strEmailbody, lStartNumber + 17, lEndNumber - lStartNumber - 19)
strCurrentText = Replace(strCurrentText, " ", "")
strCurrentText = Replace(strCurrentText, "&", " & ")
'If strCurrentText = "Counsel" Then strCurrentText = "Chief Councel"
STRReturnedItems(13) = strCurrentText
'get mgr email
lStartNumber = InStr(1, strEmailbody, "Manager E-Mail:")
lEndNumber = InStr(1, strEmailbody, "Mail Stop / Room No.:")
strCurrentText = Mid(strEmailbody, lStartNumber + 19, lEndNumber - lStartNumber - 21)
STRReturnedItems(11) = Proper(strCurrentText)
Screen.ActiveForm.Controls("Assessment Type") = strPrimaryAECategory
Else
Screen.ActiveForm.Controls("Demand") = "RA"

'get mail stop/room
lStartNumber = InStr(1, strEmailbody, "Mail Stop / Room Number:")
lEndNumber = InStr(1, strEmailbody, "Mailing Address:")
strCurrentText = Mid(strEmailbody, lStartNumber + 27, lEndNumber - lStartNumber - 27)
STRReturnedItems(14) = strCurrentText
'get mgr email
lStartNumber = InStr(1, strEmailbody, "Manager E-Mail:")
lEndNumber = InStr(1, strEmailbody, "Mail Stop / Room Number:")
strCurrentText = Mid(strEmailbody, lStartNumber + 19, lEndNumber - lStartNumber - 21)
STRReturnedItems(11) = Proper(strCurrentText)

'get functional area
lStartNumber = InStr(1, strEmailbody, "Organization:")
lEndNumber = InStr(1, strEmailbody, "RA Coordinator:")
If lEndNumber - lStartNumber > 90 Then lEndNumber = InStr(1, strEmailbody, "RA Coordinator:")
strCurrentText = Mid(strEmailbody, lStartNumber + 17, lEndNumber - lStartNumber - 19)
strCurrentText = Replace(strCurrentText, " ", "")
strCurrentText = Replace(strCurrentText, "&", " & ")
'If strCurrentText = "Counsel" Then strCurrentText = "Chief Councel"
STRReturnedItems(13) = strCurrentText
lStartNumber = InStr(1, strEmailbody, "Blindness:")
lEndNumber = InStr(1, strEmailbody, "HardofHearing:")
strCurrentText = Mid(strEmailbody, lStartNumber + 10, lEndNumber - lStartNumber - 10)
If strCurrentText Like "*on*" Then
strAECategory = ", Blindness"
strPrimaryAECategory = "Blindness"
byteIsBlind = True
Else
End If
lStartNumber = InStr(1, strEmailbody, "HardofHearing:")
lEndNumber = InStr(1, strEmailbody, "Learning:")
strCurrentText = Mid(strEmailbody, lStartNumber + 14, lEndNumber - lStartNumber - 14)
If strCurrentText Like "*on*" Then
strAECategory = strAECategory & ", Hard of Hearing"
byteIsHOH = True
If strPrimaryAECategory = "" Then strPrimaryAECategory = "Hard of Hearing"
Else
End If
lStartNumber = InStr(1, strEmailbody, "Learning:")
lEndNumber = InStr(1, strEmailbody, "LowVision:")
strCurrentText = Mid(strEmailbody, lStartNumber + 9, lEndNumber - lStartNumber - 9)
If strCurrentText Like "*on*" Then
strAECategory = strAECategory & ", Learning"
byteISLD = True
If strPrimaryAECategory = "" Then strPrimaryAECategory = "Learning"
Else
End If
lStartNumber = InStr(1, strEmailbody, "LowVision:")
lEndNumber = InStr(1, strEmailbody, "Mobility:")
strCurrentText = Mid(strEmailbody, lStartNumber + 10, lEndNumber - lStartNumber - 10)
If strCurrentText Like "*on*" Then
strAECategory = strAECategory & ", Low Vision"
byteIsLV = True
If strPrimaryAECategory = "" Then strPrimaryAECategory = "Low Vision"
Else
End If
lStartNumber = InStr(1, strEmailbody, "Mobility:")
lEndNumber = InStr(1, strEmailbody, "Deafness:")
strCurrentText = Mid(strEmailbody, lStartNumber + 9, lEndNumber - lStartNumber - 9)
If strCurrentText Like "*on*" Then
strAECategory = strAECategory & ", Mobility"
byteIsMob = True
If strPrimaryAECategory = "" Then strPrimaryAECategory = "Mobility"
Else
End If
lStartNumber = InStr(1, strEmailbody, "Deafness:")
lEndNumber = InStr(1, strEmailbody, "Organization:")
strCurrentText = Mid(strEmailbody, lStartNumber + 9, lEndNumber - lStartNumber - 9)
If strCurrentText Like "*on*" Then
strAECategory = strAECategory & ", Deafness"
byteIsDeaf = True
If strPrimaryAECategory = "" Then strPrimaryAECategory = "Deafness"
Else
End If


'get RA number
lStartNumber = InStr(1, strEmailbody, "RA Request Number:")
lEndNumber = InStr(1, strEmailbody, "General Comments:")
strCurrentText = Mid(strEmailbody, lStartNumber + 19, lEndNumber - lStartNumber - 21)
STRReturnedItems(18) = strCurrentText

'get RA name
lStartNumber = InStr(1, strEmailbody, "RA Coordinator:")
lEndNumber = InStr(1, strEmailbody, "RA Coordinator Email:")
strCurrentText = Mid(strEmailbody, lStartNumber + 16, lEndNumber - lStartNumber - 18)
STRReturnedItems(19) = Proper(Left(strCurrentText, InStr(1, strCurrentText, " ") - 1))
STRReturnedItems(20) = Proper(Mid(strCurrentText, InStrRev(strCurrentText, " ") + 1))
'get ra coordinator email
lStartNumber = InStr(1, strEmailbody, "RA Coordinator Email:")
lEndNumber = InStr(1, strEmailbody, "RA Coordinator Phone:")
strCurrentText = Mid(strEmailbody, lStartNumber + 22, lEndNumber - lStartNumber - 24)
STRReturnedItems(21) = Proper(strCurrentText)
'get ra coordinator phone
lStartNumber = InStr(1, strEmailbody, "RA Coordinator Phone:")
lEndNumber = InStr(1, strEmailbody, "RA Request Number:")
strCurrentText = Mid(strEmailbody, lStartNumber + 22, lEndNumber - lStartNumber - 24)
STRReturnedItems(22) = strCurrentText
End If
On Error Resume Next
'write the strings to the form
For i = 0 To 23
If STRReturnedItems(i) <> "" Then Screen.ActiveForm.Controls(STRCheckedItems(i)) = STRReturnedItems(i)

Next i
On Error Resume Next
Screen.ActiveForm.Controls("GONE").SetFocus
Screen.ActiveForm.Controls("GONE") = "No"
'if the user has entered a valid POD from the POD list, the POD will be updated to be the same as Address 2
Screen.ActiveForm.Controls("Address 2").SetFocus
Set rectempset = CurrentDb.OpenRecordset(Name:="SELECT [Post of Duty DD].[POD Street Address], [Post of Duty DD].[POD City], [Post of Duty DD].[POD State], [Post of Duty DD].[POD Territory] FROM [Post of Duty DD] WHERE [Post of Duty DD].[POD Street Address] = '" & Screen.ActiveForm.Controls("Address 2").Text & "'")
Screen.ActiveForm.Controls("Post of Duty") = "Depot 2021 East Woodward St."
rectempset.Close
Set rectempset = Nothing
On Error GoTo 0

'get disability group - will be needed to determine who gets assignment
lStartNumber = InStr(1, strEmailbody, "Disability Group:")
lEndNumber = InStr(1, strEmailbody, "Organization:")
strAECategory = Trim(Mid(strEmailbody, lStartNumber + 21, lEndNumber - lStartNumber - 23))
Randomize
Select Case strPrimaryAECategory
Case "Deafness", "Deaf", "Hard of Hearing"
Set recEmpAssignRecs = CurrentDb.OpenRecordset("SELECT * FROM [IRAP Employees] WHERE [Deaf/HoH Assess] = True")

Case "Blind", "Blindness", "Low Vision"
Set recEmpAssignRecs = CurrentDb.OpenRecordset("SELECT * FROM [IRAP Employees] WHERE [LV/Blind Assess] = True")

Case "Mobility"
Set recEmpAssignRecs = CurrentDb.OpenRecordset("SELECT * FROM [IRAP Employees] WHERE [Mobility Assess] = True")
Case "Learning Disability", "Learning"
Set recEmpAssignRecs = CurrentDb.OpenRecordset("SELECT * FROM [IRAP Employees] WHERE [LD Assess] = True")
End Select
recEmpAssignRecs.MoveLast
recEmpAssignRecs.MoveFirst
recEmpAssignRecs.Move (Int(recEmpAssignRecs.RecordCount * Rnd))
Screen.ActiveForm.Controls("Assigned To") = recEmpAssignRecs.Fields("First Name")
'determine assessment type
'if more than 3 disabilities, call it multiple
If CInt(byteIsBlind) + CInt(byteIsDeaf) + CInt(byteISLD) + CInt(byteIsHOH) + CInt(byteIsLV) + CInt(byteIsMob) > 700 Then
Screen.ActiveForm.Controls("Assessment Type") = "Multiple"
Else
If byteIsBlind Then
Screen.ActiveForm.Controls("Assessment Type") = "Blind"
If byteIsDeaf Then Screen.ActiveForm.Controls("Assessment Type") = "Blind/Deaf"
If byteIsHOH Then Screen.ActiveForm.Controls("Assessment Type") = "Blind/HOH"
If byteISLD Then Screen.ActiveForm.Controls("Assessment Type") = "Blind/LD"
If byteIsLV Then Screen.ActiveForm.Controls("Assessment Type") = "Blind/LV"
If byteIsMob Then Screen.ActiveForm.Controls("Assessment Type") = "Blind/Mob"
Else
If byteIsLV Then
Screen.ActiveForm.Controls("Assessment Type") = "Low Vision"
If byteIsDeaf Then Screen.ActiveForm.Controls("Assessment Type") = "LV/Deaf"
If byteIsHOH Then Screen.ActiveForm.Controls("Assessment Type") = "LV/HOH"
If byteISLD Then Screen.ActiveForm.Controls("Assessment Type") = "LV/LD"
If byteIsMob Then Screen.ActiveForm.Controls("Assessment Type") = "LV/Mob"
Else
If byteIsDeaf Then
Screen.ActiveForm.Controls("Assessment Type") = "Deaf"
If byteIsHOH Then Screen.ActiveForm.Controls("Assessment Type") = "Deaf/HOH"
If byteISLD Then Screen.ActiveForm.Controls("Assessment Type") = "Deaf/LD"
If byteIsMob Then Screen.ActiveForm.Controls("Assessment Type") = "Deaf/Mob"
Else
If byteISLD Then
Screen.ActiveForm.Controls("Assessment Type") = "Learning Disability"
If byteIsHOH Then Screen.ActiveForm.Controls("Assessment Type") = "LD/HOH"
If byteIsMob Then Screen.ActiveForm.Controls("Assessment Type") = "LD/Mob"

Else
If byteIsHOH Then
Screen.ActiveForm.Controls("Assessment Type") = "Hard of Hearing"
If byteIsMob Then Screen.ActiveForm.Controls("Assessment Type") = "HOH/Mob"
Else
If byteIsMob Then Screen.ActiveForm.Controls("Assessment Type") = "Mobility"
End If

End If
End If

End If
End If


End If
'set todays date
Screen.ActiveForm.Controls("Request Date") = CDate(Int(Now))

End Sub


Sub ResponseMail()
Dim objOutlookApp As Outlook.Application
Dim objPriorEmail As Outlook.MailItem
Dim objOurReply As Outlook.MailItem
Dim strResponseText As String
Dim strAssignedTo As String
Dim i As Integer
Dim iStartHere As Integer
Dim iEndHere As Integer
Dim strRemovedText As String
Dim recEmpAssignRecs As Recordset
'if an email isn't open in outlook, abort
If ActiveInspector Is Nothing Then
MsgBox ("You must open the Request for Adaptive Equipment email.")
Exit Sub
Else
End If

Set objPriorEmail = ActiveInspector.CurrentItem
'if the email isn't a request for adaptive equipment, abort
If Left(ActiveInspector.CurrentItem.Subject, 30) <> "Request for Adaptive Equipment" Then
MsgBox ("You must open the Request for Adaptive Equipment email.")
Exit Sub
Else
End If
Set recEmpAssignRecs = CurrentDb.OpenRecordset("SELECT * FROM [IRAP Employees] WHERE [First Name] = '" & Screen.ActiveForm.Controls("Assigned to") & "'")
Set objOurReply = objPriorEmail.Reply
objOurReply.Display
'code to remove any signatures
'removes all html from the body tag to the outlook reply header
iStartHere = InStr(1, objOurReply.HTMLBody, "******>") + 6
iEndHere = InStr(1, objOurReply.HTMLBody, "
 

")
If iEndHere = 0 Then iEndHere = InStr(1, objOurReply.HTMLBody, "")
If iEndHere <> 0 Then
strRemovedText = Mid(objOurReply.HTMLBody, iStartHere, iEndHere - iStartHere)
objOurReply.HTMLBody = Replace(objOurReply.HTMLBody, strRemovedText, "
")
Else
End If

On Error Resume Next
objOurReply.SentOnBehalfOfName = "*IRAP"
objOurReply.Recipients.Add (Screen.ActiveForm.Controls("User Email"))
objOurReply.Recipients.Add (Screen.ActiveForm.Controls("Mgr Email"))
objOurReply.Recipients.Add (Screen.ActiveForm.Controls("RAC Email"))
On Error GoTo 0
'future state - pull info from employee table
strAssignedTo = recEmpAssignRecs.Fields("First Name") & " " & recEmpAssignRecs.Fields("Last Name") & " at " & recEmpAssignRecs.Fields("Work Phone") & ". " & recEmpAssignRecs.Fields("First Name")
If Screen.ActiveForm.Controls("demand") = "Refresh" Then
strResponseText = "Thank you for contacting the IRAP office. Your request, Order #" & Screen.ActiveForm.Controls("Record number") & ", has been assigned to " & strAssignedTo & " will be contacting the customer to discuss this request for replacement equipment. Let us know if you have any questions." & "

" & "Thanks," & "
" & "IRAP"
Else
strResponseText = "Thank you for contacting the IRAP office. Your request, Order #" & Screen.ActiveForm.Controls("Record number") & ", has been assigned to " & strAssignedTo & " will be contacting the customer to schedule a date and time for a needs assessment. Let us know if you have any questions." & "

" & "Thanks," & "
" & "IRAP"
End If
objOurReply.HTMLBody = strResponseText & objOurReply.HTMLBody


End Sub
Sub CreateOffContract()
If InputBox("Type " & Chr(34) & "off" & Chr(34) & " to create an off contract record for this order.") <> "off" Then Exit Sub
Dim ctlTestedControl As Control
Dim objOutlookApp As Outlook.Application
Dim objNewTask As Outlook.TaskItem
Dim objCheckedTask As Outlook.TaskItem
Dim objIRAPFolder As Outlook.MAPIFolder
Dim foundit As Byte
Dim i As Integer
Dim recEmpAssignSet As Recordset
Dim strAssigneeSEID As String
Dim dateCurrentTime As Date

DoCmd.OpenForm ("Off Contract input form")
DoCmd.GoToRecord acDataForm, "Off Contract input form", acNewRec
On Error Resume Next
For Each ctlTestedControl In Forms("Off contract input form").Controls
ctlTestedControl = Forms("RAT input form").Controls(ctlTestedControl.Name)
Next ctlTestedControl
On Error GoTo 0
Set ctlTestedControl = Nothing
Set objOutlookApp = CreateObject("Outlook.Application")
If objOutlookApp.Version Like "14*" Then
Set objIRAPFolder = GetNamespace("MAPI").Folders("*IRAP")
Else
Set objIRAPFolder = GetNamespace("MAPI").Folders("Mailbox - *IRAP")
End If
foundit = 0
For Each objCheckedTask In objIRAPFolder.Folders("*IRAP tasks").Items
If objCheckedTask.Subject Like "*Order [#]" & Forms("Rat input form").Controls("record number") & " --*" Then
foundit = 1
Set objNewTask = objIRAPFolder.Folders("*IRAP tasks").Items.Add(olTaskItem)
objNewTask.Display
objNewTask.DueDate = objCheckedTask.DueDate
objNewTask.startdate = objCheckedTask.startdate
objNewTask.ReminderSet = objCheckedTask.ReminderSet
objNewTask.Categories = Forms("Rat input form").Controls("assigned to")
objNewTask.Subject = Replace(objCheckedTask.Subject, Forms("Rat input form").Controls("record number"), Forms("off contract input form").Controls("off contract Record"))
Set recEmpAssignSet = CurrentDb.OpenRecordset("SELECT * FROM [IRAP Employees] WHERE [First Name] = '" & Forms("Rat input form").Controls("Assigned To") & "'")
strAssigneeSEID = recEmpAssignSet.Fields("SEID")
recEmpAssignSet.Close

objNewTask.Recipients.Add strAssigneeSEID
objNewTask.Assign
'BlockInput True
objOutlookApp.ActiveInspector.Activate

objCheckedTask.Display
objCheckedTask.GetInspector.Activate
For i = 1 To 9
Do While (Now - dateCurrentTime) < 0.00009472
Loop
SendKeys "{TAB}", True
Debug.Print i
Next i


SendKeys "^a", True
dateCurrentTime = Now
Do While (Now - dateCurrentTime) < 0.00001472
Loop
objCheckedTask.GetInspector.Activate
objCheckedTask.Display
SendKeys "^c", True
dateCurrentTime = Now
Do While (Now - dateCurrentTime) < 0.00001472
Loop
objNewTask.GetInspector.Activate

dateCurrentTime = Now
Do While (Now - dateCurrentTime) < 0.00003472
Loop
'SendKeys "%J"
'SendKeys "{TAB 9}"
SendKeys "^v", True
'BlockInput False
objCheckedTask.Close olDiscard

Exit For
Else
End If
Next objCheckedTask
If foundit = 0 Then MsgBox ("Matching task not found. Please create the task manually.")

Set objOutlookApp = Nothing
Set objNewTask = Nothing
Set objCheckedTask = Nothing
Set recEmpAssignSet = Nothing

End Sub

Sub CreateOutlookTask()
'using table
Dim objOutlookApp As Outlook.Application
Dim objPriorEmail As Outlook.MailItem
Dim objOurNewTask As Outlook.TaskItem
Dim objIRAPFolder As Outlook.MAPIFolder
Dim testvar As Object

'Outlook only supports plain text in MailItem.Body
'using Word to edit/format our items
Dim objWordApp As Word.Application
Dim objEmailOutput As Word.Document
Dim objQueryOutput As Word.Document
Dim objSWQueryOutput As Word.Document
Dim objD3QueryOutput As Word.Document
Dim wrkD3Workspace As Workspace
Dim dbD3DB As Database
Dim qryD3SEIDQuery As QueryDef
Dim recD3SEIDQueryResults As Recordset
Dim recEmpAssignSet As Recordset
Dim strCurrentText As String
Dim strAssignerName As String
Dim strAssigneeSEID As String
Dim strEmailbody As String
Dim strAECategory As String
Dim strPrimaryAECategory As String
Dim lStartNumber As Long
Dim lEndNumber As Long
Dim dateCurrentTime As Date
On Error Resume Next
Set objOutlookApp = CreateObject("Outlook.Application")
If objOutlookApp.Version Like "14*" Then
Set objIRAPFolder = GetNamespace("MAPI").Folders("*IRAP")
Set objIRAPFolder = GetNamespace("MAPI").Folders("Mailbox - *IRAP")
Set objIRAPFolder = GetNamespace("mapi").Folders("
IRAP@yahoo.com")
Else
Set objIRAPFolder = GetNamespace("MAPI").Folders("Mailbox - *IRAP")
End If
On Error GoTo 0
'if an email isn't open in outlook, abort
If ActiveInspector Is Nothing Then
MsgBox ("You must open the Request for Adaptive Equipment email.")
Exit Sub
Else
End If
On Error GoTo a:
Set objPriorEmail = ActiveInspector.CurrentItem
'if the email isn't a request for adaptive equipment, abort
If Left(ActiveInspector.CurrentItem.Subject, 30) <> "Request for Adaptive Equipment" Then
a:
MsgBox ("You must open the Request for Adaptive Equipment email.")
Exit Sub
Else
End If

Set recEmpAssignSet = CurrentDb.OpenRecordset("SELECT * FROM [IRAP Employees] WHERE [seid] = '" & Environ("UserName") & "'")
strAssignerName = recEmpAssignSet.Fields("First Name")
recEmpAssignSet.Close
Set recEmpAssignSet = CurrentDb.OpenRecordset("SELECT * FROM [IRAP Employees] WHERE [First Name] = '" & Screen.ActiveForm.Controls("Assigned To") & "'")
strAssigneeSEID = recEmpAssignSet.Fields("SEID")
recEmpAssignSet.Close

strEmailbody = objPriorEmail.Body

On Error GoTo b:
Set objOutlookApp = CreateObject("Outlook.Application")
Set objWordApp = CreateObject("Word.Application")
Set objD3QueryOutput = objWordApp.Documents.Add

'get disability group - will be needed to determine who gets assignment
If Right(ActiveInspector.CurrentItem.Subject, 7) = "Refresh" Then
lStartNumber = InStr(1, strEmailbody, "Disability Group:")
lEndNumber = InStr(1, strEmailbody, "Organization:")
strPrimaryAECategory = Trim(Mid(strEmailbody, lStartNumber + 21, lEndNumber - lStartNumber - 23))
strAECategory = ", " & strPrimaryAECategory

Else
lStartNumber = InStr(1, strEmailbody, "Blindness:")
lEndNumber = InStr(1, strEmailbody, "HardofHearing:")
strCurrentText = Mid(strEmailbody, lStartNumber + 10, lEndNumber - lStartNumber - 10)
If strCurrentText Like "*on*" Then
strAECategory = ", Blindness"
strPrimaryAECategory = "Blindness"
Else
End If
lStartNumber = InStr(1, strEmailbody, "HardofHearing:")
lEndNumber = InStr(1, strEmailbody, "Learning:")
strCurrentText = Mid(strEmailbody, lStartNumber + 14, lEndNumber - lStartNumber - 14)
If strCurrentText Like "*on*" Then
strAECategory = strAECategory & ", Hard of Hearing"
If strPrimaryAECategory = "" Then strPrimaryAECategory = "Hard of Hearing"
Else
End If
lStartNumber = InStr(1, strEmailbody, "Learning:")
lEndNumber = InStr(1, strEmailbody, "LowVision:")
strCurrentText = Mid(strEmailbody, lStartNumber + 9, lEndNumber - lStartNumber - 9)
If strCurrentText Like "*on*" Then
strAECategory = strAECategory & ", Learning"
If strPrimaryAECategory = "" Then strPrimaryAECategory = "Learning"
Else
End If
lStartNumber = InStr(1, strEmailbody, "LowVision:")
lEndNumber = InStr(1, strEmailbody, "Mobility:")
strCurrentText = Mid(strEmailbody, lStartNumber + 10, lEndNumber - lStartNumber - 10)
If strCurrentText Like "*on*" Then
strAECategory = strAECategory & ", Low Vision"
If strPrimaryAECategory = "" Then strPrimaryAECategory = "Low Vision"
Else
End If
lStartNumber = InStr(1, strEmailbody, "Mobility:")
lEndNumber = InStr(1, strEmailbody, "Deafness:")
strCurrentText = Mid(strEmailbody, lStartNumber + 9, lEndNumber - lStartNumber - 9)
If strCurrentText Like "*on*" Then
strAECategory = strAECategory & ", Mobility"
If strPrimaryAECategory = "" Then strPrimaryAECategory = "Mobility"
Else
End If
lStartNumber = InStr(1, strEmailbody, "Deafness:")
lEndNumber = InStr(1, strEmailbody, "Organization:")
strCurrentText = Mid(strEmailbody, lStartNumber + 9, lEndNumber - lStartNumber - 9)
If strCurrentText Like "*on*" Then
strAECategory = strAECategory & ", Deafness"
If strPrimaryAECategory = "" Then strPrimaryAECategory = "Deafness"
Else
End If

End If


'we are creating up to 3 temp files in c:\temp - they get combined to create email
If objOutlookApp.Version Like "14*" Then
objPriorEmail.SaveAs Path:="c:\temp\tempmail.rtf", Type:=olRTF
Else
objPriorEmail.SaveAs Path:="c:\temp\tempmail.doc", Type:=olHTML
End If
BlockInput True
'query for all entries on this seid
'output the query as html
DoCmd.OpenQuery queryname:="Query Menu - SEID Query - GM"
'check to see if the query returned anything
If Screen.ActiveDatasheet.Recordset.RecordCount > 0 Then

'if it did, save the results to word doc
If objOutlookApp.Version Like "14*" Then
DoCmd.OutputTo objecttype:=acOutputQuery, outputformat:=acFormatRTF, outputfile:="c:\temp\tempquery.rtf"
Else
DoCmd.OutputTo objecttype:=acOutputQuery, outputformat:=acFormatHTML, outputfile:="c:\temp\tempquery.doc"
End If
DoCmd.Close acQuery, "Query Menu - SEID Query - GM"

Else
'if it didn't, make a blank word doc stating there are no orders in d4
Set objQueryOutput = objWordApp.Documents.Add
objQueryOutput.Range(Start:=0, End:=0).InsertAfter Text:=("No prior orders in D4.")
If objOutlookApp.Version Like "14*" Then
objQueryOutput.SaveAs "c:\temp\tempquery.rtf"
Else
objQueryOutput.SaveAs "c:\temp\tempquery.doc"
End If
objQueryOutput.Close savechanges:=False
DoCmd.Close acQuery, "Query Menu - SEID Query - GM"
End If
'same thing for software query
DoCmd.OpenQuery queryname:="Query Menu - Software Spreadsheet SEID or Last Name - GM"
If Screen.ActiveDatasheet.Recordset.RecordCount > 0 Then
If objOutlookApp.Version Like "14*" Then
DoCmd.OutputTo objecttype:=acOutputQuery, outputformat:=acFormatRTF, outputfile:="c:\temp\tempswqry.rtf"
Else
DoCmd.OutputTo objecttype:=acOutputQuery, outputformat:=acFormatHTML, outputfile:="c:\temp\tempswqry.doc"
End If
DoCmd.Close acQuery, "Query Menu - Software Spreadsheet SEID or Last Name - GM"
Else
Set objSWQueryOutput = objWordApp.Documents.Add
If objOutlookApp.Version Like "14*" Then
objSWQueryOutput.SaveAs "c:\temp\tempswqry.rtf"
Else
objSWQueryOutput.SaveAs "c:\temp\tempswqry.doc"
End If
objSWQueryOutput.Close savechanges:=False
DoCmd.Close acQuery, "Query Menu - Software Spreadsheet SEID or Last Name - GM"
End If
'setup for external query to D3
Set wrkD3Workspace = CreateWorkspace("", "admin", "")
Set dbD3DB = wrkD3Workspace.OpenDatabase("\\NCT0010VPSCC1\common\MITS\ACIO\StratPlan\Isocsp\teams\Adaptive Technology\DESAC 3\desac 3 database.mdb")
Set qryD3SEIDQuery = dbD3DB.QueryDefs("SEID Query for All Orders-CLINs and Serial Numbers")
'use the SEID from RAT form as the query parameter
qryD3SEIDQuery.Parameters(0).Value = Forms("RAT Input Form").Controls("SEID")
Set recD3SEIDQueryResults = qryD3SEIDQuery.OpenRecordset

If recD3SEIDQueryResults.RecordCount > 0 Then
'if we have records, create a word table to hold them
objD3QueryOutput.Tables.Add Range:=objD3QueryOutput.Range(Start:=0, End:=0), numrows:=1, numcolumns:=6

'make the table pretty
objD3QueryOutput.Tables(1).AllowAutoFit = True
With objD3QueryOutput.Tables(1)
With .Borders(wdBorderLeft)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth050pt
.Color = wdColorAutomatic
End With
With .Borders(wdBorderRight)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth050pt
.Color = wdColorAutomatic
End With
With .Borders(wdBorderTop)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth050pt
.Color = wdColorAutomatic
End With
With .Borders(wdBorderBottom)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth050pt
.Color = wdColorAutomatic
End With
With .Borders(wdBorderVertical)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth075pt
.Color = wdColorAutomatic
End With
.Borders(wdBorderDiagonalDown).LineStyle = wdLineStyleNone
.Borders(wdBorderDiagonalUp).LineStyle = wdLineStyleNone
.Borders.Shadow = False
End With
'title each section
objD3QueryOutput.Tables(1).Rows(1).Cells(1).Range.Text = "D3 Order No"
objD3QueryOutput.Tables(1).Rows(1).Cells(2).Range.Text = "Last"
objD3QueryOutput.Tables(1).Rows(1).Cells(3).Range.Text = "First"
objD3QueryOutput.Tables(1).Rows(1).Cells(4).Range.Text = "Serial"
objD3QueryOutput.Tables(1).Rows(1).Cells(5).Range.Text = "CLIN"
objD3QueryOutput.Tables(1).Rows(1).Cells(6).Range.Text = "Desc"

'loop through the records and make a row for each instance of this seid in D3
Do While Not recD3SEIDQueryResults.EOF
On Error Resume Next
objD3QueryOutput.Tables(1).Rows.Add
objD3QueryOutput.Tables(1).Rows(objD3QueryOutput.Tables(1).Rows.Count).Cells(1).Range.Text = CStr(recD3SEIDQueryResults.Fields(0))
objD3QueryOutput.Tables(1).Rows(objD3QueryOutput.Tables(1).Rows.Count).Cells(2).Range.Text = CStr(recD3SEIDQueryResults.Fields(1))
objD3QueryOutput.Tables(1).Rows(objD3QueryOutput.Tables(1).Rows.Count).Cells(3).Range.Text = CStr(recD3SEIDQueryResults.Fields(2))
objD3QueryOutput.Tables(1).Rows(objD3QueryOutput.Tables(1).Rows.Count).Cells(4).Range.Text = CStr(recD3SEIDQueryResults.Fields(3))
objD3QueryOutput.Tables(1).Rows(objD3QueryOutput.Tables(1).Rows.Count).Cells(5).Range.Text = CStr(recD3SEIDQueryResults.Fields(4))
objD3QueryOutput.Tables(1).Rows(objD3QueryOutput.Tables(1).Rows.Count).Cells(6).Range.Text = CStr(recD3SEIDQueryResults.Fields(5))

recD3SEIDQueryResults.MoveNext
On Error GoTo b:
Loop
'save the file
If objOutlookApp.Version Like "14*" Then
objD3QueryOutput.SaveAs ("c:\temp\tempd3.docx")
Else
objD3QueryOutput.SaveAs ("c:\temp\tempd3.doc")
End If
objD3QueryOutput.Close savechanges:=False
Else
'if no query results, make a word doc saying so...
objD3QueryOutput.Range(Start:=0, End:=0).InsertAfter Text:=("No prior orders in D3.")
If objOutlookApp.Version Like "14*" Then
objD3QueryOutput.SaveAs ("c:\temp\tempd3.docx")
Else
objD3QueryOutput.SaveAs ("c:\temp\tempd3.doc")
End If
objD3QueryOutput.Close savechanges:=False
End If
'copy the d4query
If objOutlookApp.Version Like "14*" Then
Set objQueryOutput = objWordApp.Documents.Open("c:\temp\tempquery.rtf")
Else
Set objQueryOutput = objWordApp.Documents.Open("c:\temp\tempquery.doc")
End If
objQueryOutput.Activate
If objQueryOutput.Tables.Count > 0 Then
objWordApp.Selection.HomeKey Unit:=wdLine
objWordApp.Selection.SplitTable
objWordApp.Selection.TypeParagraph
Else
End If

objWordApp.Selection.WholeStory
objWordApp.Selection.Copy
'paste it into the word doc with the original email from *IRAP
If objOutlookApp.Version Like "14*" Then
Set objEmailOutput = objWordApp.Documents.Open("c:\temp\tempmail.rtf")
Else
Set objEmailOutput = objWordApp.Documents.Open("c:\temp\tempmail.doc")
End If
objEmailOutput.Range(Start:=0, End:=0).InsertAfter Text:=Chr(10)
objEmailOutput.Range(Start:=0, End:=0).Paste

objQueryOutput.Close savechanges:=False
'copy in the software query
If objOutlookApp.Version Like "14*" Then
Set objSWQueryOutput = objWordApp.Documents.Open("c:\temp\tempswqry.rtf")
Else
Set objSWQueryOutput = objWordApp.Documents.Open("c:\temp\tempswqry.doc")
End If
objSWQueryOutput.Activate
If objSWQueryOutput.Tables.Count > 0 Then
objWordApp.Selection.HomeKey Unit:=wdLine
objWordApp.Selection.SplitTable
objWordApp.Selection.TypeParagraph
Else
End If

objWordApp.Selection.WholeStory
objWordApp.Selection.Copy
objEmailOutput.Range(Start:=0, End:=0).InsertAfter Text:=Chr(10)
objEmailOutput.Range(Start:=0, End:=0).Paste

objSWQueryOutput.Close savechanges:=False
'copy the d3query
If objOutlookApp.Version Like "14*" Then
objWordApp.Documents.Open ("c:\temp\tempd3.docx")
Else
objWordApp.Documents.Open ("c:\temp\tempd3.doc")
End If
objWordApp.Selection.WholeStory
objWordApp.Selection.Copy
'paste it into the word doc
objEmailOutput.Range(Start:=0, End:=0).InsertAfter Text:=Chr(10)
objEmailOutput.Range(Start:=0, End:=0).Paste

'copy the word doc - now has both queries and the email
objEmailOutput.Activate
objWordApp.Selection.WholeStory
objWordApp.Selection.Copy
'create a new task
BlockInput False
Set objOurNewTask = objIRAPFolder.Folders("*IRAP tasks").Items.Add(olTaskItem)

On Error GoTo 0
objOurNewTask.Display
objOurNewTask.GetInspector.Activate
AppActivate ("Untitled - Task")

'pause (approx 2 seconds)
dateCurrentTime = Now
Do While (Now - dateCurrentTime) < 0.00003472
Loop
If IsNull(Screen.ActiveForm.Controls("User Phone")) Then
objOurNewTask.Subject = "Order #" & Screen.ActiveForm.Controls("Order Number") & " -- " & CStr(Screen.ActiveForm.Controls("User First Name")) & " " & CStr(Screen.ActiveForm.Controls("User Last Name")) & strAECategory
Else
objOurNewTask.Subject = "Order #" & Screen.ActiveForm.Controls("Order Number") & " -- " & CStr(Screen.ActiveForm.Controls("User First Name")) & " " & CStr(Screen.ActiveForm.Controls("User Last Name")) & strAECategory & " -- " & CStr(Screen.ActiveForm.Controls("User Phone"))
End If
objOurNewTask.DueDate = CDate(Int(Now()) + 14)
objOurNewTask.startdate = CDate(Int(Now()))
objOurNewTask.ReminderSet = False
objOurNewTask.Categories = Screen.ActiveForm.Controls("Assigned To")
Select Case strPrimaryAECategory
Case "Deafness", "Deaf", "Hard of Hearing", "Blind", "Blindness", "Low Vision", "Learning Disability", "Learning"
objOurNewTask.TotalWork = 120

Case "Mobility"
objOurNewTask.TotalWork = 180

Case Else
End Select
objOurNewTask.Recipients.Add strAssigneeSEID
objOurNewTask.Assign
BlockInput True

'pause (approx 3 seconds)
dateCurrentTime = Now

objOurNewTask.GetInspector.Activate
objOurNewTask.Display
Do While (Now - dateCurrentTime) < 0.00006472
Loop
'can't set focus to the task body in Outlook easily
'so we use sendkeys to paste the word doc into our task
If objOutlookApp.Version Like "14*" Then
SendKeys "%u", True
SendKeys "{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}", True
Else

SendKeys "{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}", True
End If
SendKeys Month(Now) & "/" & Day(Now) & " - Assigned to " & objOurNewTask.Categories & " by " & strAssignerName
SendKeys "{ENTER}"
SendKeys "{ENTER}"

dateCurrentTime = Now
Do While (Now - dateCurrentTime) < 0.00003472

Loop
SendKeys "^v", True
dateCurrentTime = Now
Do While (Now - dateCurrentTime) < 0.00001472
Loop
SendKeys "+{TAB} ", False
Do While (Now - dateCurrentTime) < 0.00003472
Loop

b:
'done with word/access objects
On Error Resume Next
BlockInput False
objWordApp.Quit savechanges:=wdDoNotSaveChanges
If Not dbD3DB Is Nothing Then dbD3DB.Close
If Not wrkD3Workspace Is Nothing Then wrkD3Workspace.Close


End Sub

I lost my original Administrator password and need to set new one in order to use certain programs, downloads, etc. How do I do this?

$
0
0
I have Win 8.1 and I have forgot my Administrator password. I need to create new one in order to use some programs, downloads, etc. My PC keeps asking me to log on as Administrator and I cannot. How do I solve this issue?

inmovilizar paneles y filas excel

$
0
0

Hola! 

He inmovilizado paneles, pero al hacer scroll, quiero que otra fila determinada se paralice al llegar al panel... En algún documento lo he visto, así que entiendo que se puede hacer, pero no lo consigo!!

Ejemplo:

Panel fila 1, 2, y 3. Este se encuentra inmovilizado cuando hago scroll con el raton.

Ahora, fila 20. quiero que al hacer scroll y llegue a estar debajo de la fila 3 se quede paralizado también. ¿Esto se puede?

Gracias! Saludos!


Help on formula in Excel

$
0
0

Hi,

 

I have the following table with has static data in one tab

Room Size Racks
Micro 0-4
Tiny 5-10
Small 11-20
Medium 21-50
Large 51-100
Huge 101-200

 I need to lookup column B below in the table above column B and fill out column C below from column A from above in another tab

 

A

3Micro
B199Huge

C

13Small
D21Medium

What would be the best formula to use, of course the table will filled out will be hundred of lines.

Regards,

TK

Host Process for Windows Service usando toda a banda larga da internet

$
0
0
Não consigo mais fazer nada na internet. Estou com muita dificuldade para abrir a página inicial de pesquisa do Google, que dirá entrar aqui para resolver o meu problema. Desde ontem à noite, o Host Process for Windows Service não para de fazer download, não entendo o por que disso. Já verifiquei nas configurações do Windows UpDate, e nada está sendo atualizado. Acho isso muito estranho, até por que o Windows 10 não está mostrando o que faz no momento e ainda ocupa toda a minha internet. Já verifiquei no regedit e alterei na pasta Ndu o start de 2 para 4 como já vi em comunidades de outros sites, mas nada muda. Preciso para com esses downloads estaranhos. Lembrando que tive que formatar o meu PC a pouco tempo por não conseguir alterar o Windows 10 de 32 bits para 64. Hoje eu tenho a última versão 17063 do Windows 10 x 64. Alguém pode me ajudar ?

Monthly MSN charge

$
0
0

Do I need to continue to pay $10/ month to keep my MSN email address? I don't use any other MSN service.

Thanks!

edge 彻底从电脑中消失

$
0
0
在用edge时死机,重启不了强行关机后edge彻底从电脑中消失,任务栏上没有,开始菜单也没有,C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe中的edge.exe启动不了。在搜索引擎中选择网页打开才能启动edge但任务栏还是不显示,最小化的话就没了。和这个现象一起出现的还有生活动态里的快捷方式也都没了。

Windows 10 Home Version taking too much time for Startup and Shutdown. Also disk showing 100% usage

$
0
0
I had already disabled superfetech process from startup

Conexão entre ficheiros de Excel não me devolve alguns dados

$
0
0

Tenho uma tabla de Excel com cerca de 30.000 linhas que não foi feita por mim.

Eu preciso passar alguns dados dessa tabela para outro ficheiro de Excel.

Para fazer isso sigo os seguintes passos:

  1. Seleciono a coluna que quero transferir, vou a Fórmulas ->Definir nome -> dou o nome que quero ex.: "Pedido" (=Plan1!$B:$B) e "ok"
  2. Abro o novo ficheiro de Excel novo onde pretendo por a tabela que defini.
  • Vou a dados -> Conexões existentes -> Procurar mais ( localizo o ficheiro e a tabela "Pedido" -> primo "OK" -> na janela Dados escolha a opção Tabela e “OK”

O problema surge quando eu vou ver os dados e verifico que parte dos dados dessa coluna não aparecem na nova folha de Excel. Neste caso, esses dados "desaparecidos" são alfanuméricos (ex.: GR 1234). Pormenor, todos os dados acima e a baixo desses dados aparecem.

Já tentei varias coisas, mudar o formato das células (texto, geral, etc...), copiar os dados como valores para outro lugar e voltar a colar com a coluna limpa, inserir uma coluna nova e eliminar a antiga, etc...

Não consigo descobrir o problema.

Não sei se existe alguma bloquei, formatação ou o que seja que esteja a impedir isso.

Se alguém tiver uma ideia será muito bem vinda, agradeço muito.

Obrigado

Como vejo o histórico de todas as atividades do Windows em um determinado período recente.

$
0
0

Bom dia,

Há 3 dias, usei um programa que resolveu um problema numa edição em vídeo e precisei usá-lo novamente, mas não lembro qual é o programa que usei. Pergunto:

Existe o recurso Histórico de todas, ou algumas das as atividades do Windows (8.1) em um passado recente? Se sim como usá-lo.

Damião Martins - *** Email address is removed for privacy ***


Merge a different skype account

$
0
0

Hi Guys

I have another account with all my contacts on but I need to move those contacts to this account.

I stupidly set up an account with my ex wifes name in and for the life of me can't seem to change the user name to at least just be a name that does not involve her name.

Can someone please guide me through how I can change the username on my other account to one that is more suitable or transfer all contacts to this account.

Thanks

Porque el Skype ahora es el peor que hay????

$
0
0

Tengo número de skype y ahora estoy llenos de problemas sin solucionar.

No se puede más dejar mensajes en el contestador de bienvenida. Solo una idiota automatica hablando en inglés standard de skype.

Cuando contestas una llamada por la APP tienes que quitar del viva voz toda vez.

Si estas en una llamada y alguien te llama, corta la llamada actual para meterse la llamada nueva. Si cuelgas, en medio segundo regresa, vuelves a colgar y la llamada insiste para que contestes. Una verdadera ****.

Skype no tiene un servicio de atencion al cliente que no sea automatico, no encuentro mi respuesta, solo esta maldita comunidad para decir cuanto tengo ganas de dejar esta aplicación. Pero, me devuelven el dinero invertido??

Soy cliente de skype desde que existe, pero esto ya no es lo mismo.

Connection Error

$
0
0

Good Day,

When I receive a skype call on my Mobile (I-Phone), I answer but it takes about 10 seconds before I start hearing the person on the other side.  Sometimes the call comes through after those delaying seconds, sometimes the person on the other side gets a message " No answer"

If I call back immediately they can answer.

The same when I make a initial call to somebody it just rings and rings and eventually disconnect and say no answer, if I call back immediately the person on the other side can answer with out any issue.

Thus I need to make 2 calls before I can speak and the same Io need to get 2 calls before the person can connect with me.

Strange ?????

Onedrive / Windows Store über GPO blockieren/entfernen

$
0
0

Hallo Community,

ich habe bei meinem Windows Server 2012-R2 die Templates für Windows 10 Maschinen schon heruntergeladen und aktiviert.

Nun möchte ich OneDrive, Cortana und den Windows Store über GPO auf meiner Windows 10 pro Version 1607 Maschine Blockieren, dass diese Programme unzugänglich und/oder ausgeblendet werden.

Cortana ist nun völlig ausgeblendet, aber OneDrive und der Windows Store werden weiterhin angezeigt und laufen auch noch auf der Win10 Maschine, unter einem Benutzter mit Admin rechten, obwohl ich diese Programme per GPO auf dem Server blockiert habe.

Wenn ich jedoch mich mit dem Administrator Benutzer Anmelde, kann ich den Store nicht mehr öffnen. Es erscheint die Fehlermeldung, dass ich die Anwendung, mit dem Administrator Benutzer nicht öffnen kann. OneDrive funktioniert  aber  weiterhin einwandfrei.

Ich habe auch schon zu diesem Problem Recherchiert und heraufgefunden, dass es mit der Version gar nicht funktionieren kann.

Nun wollt ich doch Fragen ob es in irgendeiner Art Trotzdem möglich ist, OneDrive und den Windows Store per GPO zu Blockieren.

Im Voraus schon,
Vielen Dank für eure Hilfe.

как удалить контакт в скайпе

$
0
0
как удалить контакт в скайпе
Viewing all 1237233 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>