Consulting

Results 1 to 3 of 3

Thread: Solved: Creating and deleting temporary files in Word VBA

  1. #1
    Knowledge Base Approver
    Space Cadet
    VBAX Tutor sandam's Avatar
    Joined
    Jan 2005
    Location
    London
    Posts
    292
    Location

    Solved: Creating and deleting temporary files in Word VBA

    I'm in a bit of a pickle. I need to make sure that when one of my macros has finished running it is unloaded properly (clears everthing from memory because our systems are resource hungry) but i also need to keep a hold of certain information gathered during that macro's runnning. I'm thinking of using a temp file but I'm not to sure how to do it. as is typically the case for me, the theory is there but I have no idea about the execution.

    Any help in this regard would be mostly appreciated (even a pointer to a Kb entry would help)

    Thanks in advance
    Andrew

  2. #2
    Knowledge Base Approver
    Space Cadet VBAX Tutor sandam's Avatar
    Joined
    Jan 2005
    Location
    London
    Posts
    292
    Location
    I really should read the in built help first before making posts like these. I found the solution

    object.CreateTextFile(filename[, overwrite[, unicode]])

  3. #3
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Sandam,

    Thank you for posting your answer. We greatly appreciate it when someone lets us know that they've found a solution and don't leave our members chasing after an issue that's already been solved!
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





Posting Permissions

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