hi Robert!
Nah, i'm pretty slow here as i know nuts about macro.
So thanks for your patience!
so the code will be placed in the module like this:
Option Explicit
Private Declare Function GetTempPathA Lib "kernel32" (ByVal
nBufferLength As
Long, ByVal lpBuffer As String) As Long
Function GetTempPath() As String
Dim lpBuffer As String
Dim nBufferLength As Long
Dim Ret As Long
nBufferLength = 255
lpBuffer = Space$(nBufferLength)
Ret = GetTempPathA(nBufferLength, lpBuffer)
GetTempPath = Left$(lpBuffer, Ret)
End Function
--
rach85
------------------------------------------------------------------------
rach85's Profile:
http://www.excelforum.com/member.php...o&userid=16557
View this thread:
http://www.excelforum.com/showthread...hreadid=510514