+ Reply to Thread
Results 1 to 6 of 6

New Laptop, macros no longer work...

  1. #1
    Registered User
    Join Date
    08-31-2012
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    10

    Question New Laptop, macros no longer work...

    I have 140 excel files all with the same output macro. The files use a vba script and write the output to the c:\

    "Set a = fs.CreateTextFile("c:\" & filename & ".json", True)"

    This worked fine on my old laptop but now with the new one I am getting permission/access denied, etc. errors when i try to write to c:

    I edited the properites of the root c: drive so all users/authenticated/system etc. have full permissions but it still doesnt work. Any ideas?

  2. #2
    Registered User
    Join Date
    08-31-2012
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: New Laptop, macros no longer work...

    Anyone have any ideas?

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: New Laptop, macros no longer work...

    Is the OS Windows 8?

    If it is you don't seem to be able to write directly to the root drive C:.

    I tried changing permissions too but with no luck, so I gave in and created a folder in the root drive and used that.

    Having a dedicated folder does kind of make sense.
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    08-31-2012
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: New Laptop, macros no longer work...

    No its windows 7 pro, fresh install of windows and office 10.

    Changing to a folder would be fine, if it wasnt 140 files/macros that would need to be changed.
    Last edited by malcolmlo; 01-22-2013 at 01:56 PM.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: New Laptop, macros no longer work...

    Strange, I've never had that kind of problem with Windows 7.

    What happens when you try and create a file manually in C:\?

  6. #6
    Registered User
    Join Date
    08-31-2012
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: New Laptop, macros no longer work...

    UPDATE: found the problem, i do not have privelages to write to the c drive. Need to get the IT guys to change this, thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.6.0 RC 1