Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by derrick

  1. derrick

    Checking for existing files

    Use the previous code I gave you but manipulate the filename to achieve the result you require, it's fairly simple to do and should need no further explanation.
  2. derrick

    End Of Month

    Public Function MonthEnd() As Boolean Dim myDate As Date myDate = Date myDate = myDate + 11 If Month(myDate + 1) > Month(myDate) Then MsgBox myDate & " is the end of the month." MonthEnd = True Else MonthEnd = False End If End...
  3. derrick

    VB6 and XP

    I transfer my VB6 projects between home, (where I am on XP), and work, (where I was on Windows 98, now Windows NT), have have not yet had a compatability problem. It would appear that there are no problems in transferring VB6 programs from one Windows system to another. Derrick
  4. derrick

    Checking for existing files

    This is the Object Oriented way of doing what you request, and is now the preferred method using the VB file object: If the function returns True then the file was created, if it returns false then the file already existed or an error occurred. You must put a reference in to Microsoft...
  5. derrick

    Outlook, use VB to delete message

    Thx to anyone who may have looked at this, I have managed to do it using the Outlook objects. Refer to the address below on how to use it: http://www.serverwatch.com/tutorials/print.php/1474711 Please regard this question as closed.
  6. derrick

    Outlook, use VB to delete message

    Hi, can you provide the code needed to delete a selected message/e-mail from the Inbox? Thx Derrick
  7. derrick

    Convert Excel to PDF

    Done this using VB, Excel and Acrobat Distiller, Thanks for trying to help
  8. derrick

    VB6: Convert PowerPoint to PDF

    Title pretty much says it all, I would like to automatically convert PowerPoint documents to PDF using Visual Basic. Also, is it possible to load an Excel document into a Word document using VB?
  9. derrick

    E-mail from VB

    Thanks John, the solution I have used is shown below, commented out lines can be used to add other options etc. Sub SendMAPIMessage() Dim MapiSession As Object Dim MapiMessage As Object Dim MapiRecipient As Object Dim MapiAttachment As Object Dim Recpt, errObj As Long, errMsg Const...
  10. derrick

    VB6 Convert files to PDF

    Hi, I need to convert MS Word, Excel and PowerPoint documents into PDF format. I have the full version 5 Adobe Acrobat application. The PDF buttons appear in the other applications and can be used manually, but I need to convert files in a folder automatically. I can read a folder and its...
  11. derrick

    E-mail from VB

    Does anyone know how to automatically mail a document using VB, how to write a message and heading on the e-mail, and attach a document. Thx in advance Derrick
  12. derrick

    VB Com object ASP

    Further to the above, I have registered a COM object that I created using VB. I have then used the .dll file successfully in another VB program. Yet when I try to use the .dll with ASP it is totally ignored. HELP!
  13. derrick

    VB Com object ASP

    I have created a simple .dll and registered it using regsvr32. I now want to use the COM object from an ASP page. The object registers ok, but only if it is in "C:\WINNT\system". I thought it could be held anywhere but this does not appear to be the case (by using regsvr32...
  14. derrick

    VB6 & Adobe Acrobat

    I would like to know how to open a .pdf document in Adobe Acrobat using VB code. I have the full version 5.0 of adobe. If possible I would also like to be able to use SendKeys, but this is not urgent, yet! Cheers
  15. derrick

    Repair Access97 Database

    Database is corrupt, Access can not repair it, any solutions outthere folks?

Part and Inventory Search