![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Location: Midlands, UK
Posts: 217
|
Hi,
I know this can be done, but not sure how. Does any one have some code I could pinch that gets the temp folder path from the registry ( or anywhere ) ? TIA, Iain |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Is this an NT machine? (I'm assuming that it is, but I'll ask first)
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Apr 2002
Location: Midlands, UK
Posts: 217
|
Yes Mark, it is an NT machine, but I'm looking for some code which is universal ( some users are on NT, Some on Win 98 ). The link you posted looks as though it'll do what I want - thanks.
|
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
Try this; ' ' Function TmpFolderLocation() Dim Fso, TFolder Set Fso = CreateObject("Scripting.FileSystemObject") Set TFolder = Fso.GetSpecialFolder(2) TmpFolderLocation = TFolder.Path Set Fso = Nothing Set TFolder = Nothing End Function |
|
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Apr 2002
Location: Midlands, UK
Posts: 217
|
Finally got a chance to have another look at this !!
Thanks Ivan - does exactly what it says on the tin. Iain |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|