+ Reply to Thread
Results 1 to 1 of 1

Thread: using Environ("Temp") correctly

  1. #1
    Registered User
    Join Date
    01-07-2010
    Location
    Martlesham
    MS-Off Ver
    Excel 2007
    Posts
    1

    Question using Environ("Temp") correctly

    HEy all,

    Im using a web query which writes out a temp file to the local directory and then wriets to the excel sheet.

    Unfortunately users within my department do not have permission to write to their local c: and hence theer is file access error.

    Here:

    With ActiveSheet.QueryTables.Add(Connection:="TEXT; c:\JanReportEnding31/01/10.csv", _
    Destination:=Range("$A$1"))
    How do i enter the Environ("Temp") correctly in the above command?

    Regards
    Last edited by DonkeyOte; 01-07-2010 at 08:58 AM. Reason: please use CODE tags at all times

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0