I've managed to slove the problem,
if anyone is interested it's
Private Sub Application_NewMail()
Dim objItem As Outlook.MailItem
Set objItem = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Items.GetLast()
UserForm1.TextToSpeech1.Speak "You have recieved a new email message...
I've manger to get the to know which was the last email, but I stuck the reading the senders name
this what I have so far:
Private Sub Application_NewMail()
Set myOlApp = CreateObject("Outlook.Application")
Set myNamespace = myOlApp.GetNamespace("MAPI")
Set myFolder =...
I'm trying the write a peiece of code that verbally noticifies the user of the sender of a incoming message
but I'm stuck with not know the object name for a newly recieved email
code I have so far is:
Set myItem = Application.NewMail
bob = myItem.SenderName
UserForm1.TextToSpeech1.Speak "you...
These may help
Counts the values in the range E4:E23 =COUNT(E4:E23)
Counts all non-blank cells in the range E4:E23 =COUNTA(E4:E23)
Counts blank cells in the range E4:E23 =COUNTBLANK(E2:E23)
Counts all values greater than 0 =COUNTIF(E4:E23;">0")
Counts all values less than 0...
I'm using the following code to enter the time on a goup of cell, is there any way on limiting it'll only work in cells C4:D34?
Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
Selection.Value = Time
End Sub
what you could do it have an extra collum (in this case D) with the formulae
in D1 put:
=COUNTA(C2:C501)
D2 put:
=RAND()
D3 put:
=(D1-1)*D2+2
D4 put:
=(D1-1)*D2+2
D5 put:
=RAND()
D6 put:
=(D1-1)*D4+2
then take the get rid of the decimal points, and then cells
D5 and D3 will give...
I trying to write a code that when you close close
workbook1, if the userform in workbook2 is not active then activate it.
My only problem is I don't know how to reference the userform in another workbook
I'm trying to write a script that depending on theier IP address the link will change to a different website.
I only normaly wirte in VBA, so as you can guess the code below doesn't work!!! any ideas on what I'm doing wrong?!?
<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript">...
I'm in the process of writting a macro to a number of cells into another workbook.
the only problem I'm having that the Macro I'm writing needs to find the row it's self before it able of copy the Data. What I need to do is to copy Cells on the Active row from A to D collumn. but I stuck!!
I...
Try:
Sub findit()
Range("A2").Select
start:
If ActiveCell.Value = "FLAG" Then
ActiveCell.EntireRow.Select
Selection.Copy
Workbooks.Open Filename:="filename.xls"
Sheets("Sheet1").Select
Rows("1:1").Select
Selection.Paste
Else
If ActiveCell.Value = "" Then
GoTo ende
Else...
I have written a Macro so when it runs it reads the daily totals of a report using Text to speech.
I just the quick question is it posable to change the default male voice to a female one?!?
================================================
Application.ScreenUpdating = False
Workbooks.Add...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.