+ Reply to Thread
Results 1 to 12 of 12

troubleshoot code that no longer saves files within a newly created folder

  1. #1
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155

    troubleshoot code that no longer saves files within a newly created folder

    My code used to work.

    Now it creates a new folder but no longer recognizes the new file path. The result is an error message. ("run Time error 75" path/file acces error)

    I am have been unable to troubleshoot what I did.

    I rechecked the fokder file path already.

    only thing I can think of is that I inadvertantly erased something.

    Please Login or Register  to view this content.

    Can some one please help troubleshoot my code.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: troubleshoot code that no longer saves files within a newly created folder

    Hello IBM,

    If your are receiving an error when running the code, please tell us the error number and where in the code the error occurs.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155
    Quote Originally Posted by Leith Ross View Post
    Hello IBM,

    If your are receiving an error when running the code, please tell us the error number and where in the code the error occurs.
    Thank you for your reply
    My original post shows the error code.
    The error occurs after the folder is created and set in the designated file path.
    That is when the error code showed.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: troubleshoot code that no longer saves files within a newly created folder

    Hello IBM,

    There are a couple of reasons this could happening: Illegal characters in the folder name or Access rights violation.

  5. #5
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155
    Quote Originally Posted by Leith Ross View Post
    Hello IBM,

    There are a couple of reasons this could happening: Illegal characters in the folder name or Access rights violation.
    I'm not sure what illegal characters are? Perhaps some examples may help.
    What are the access rights violations? I am not certain what you mean.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: troubleshoot code that no longer saves files within a newly created folder

    Hello TBM,

    Windows forbidden ASCII characters for files and folders...

    < (less than)
    > (greater than)
    : (colon - sometimes works, but is actually NTFS Alternate Data Streams)
    " (double quote)
    / (forward slash)
    \ (backslash)
    | (vertical bar or pipe)
    ? (question mark)
    * (asterisk)

    0-31 (ASCII control characters)


    There are reserved system names you cannot use as well. Here is brief list...

    CON, PRN, AUX, NUL
    COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9
    LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9

  7. #7
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155

    Re: troubleshoot code that no longer saves files within a newly created folder

    Ok
    Back to my original question.

    Is there a way for someone to troubleshoot this code.

    It worked for 6 months. Now it does not.

  8. #8
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: troubleshoot code that no longer saves files within a newly created folder

    Hello TBM,

    The first step in troubleshooting is check what has most recently changed.

    Did your system get recently updated?
    Did DropBox update its software. recently?
    Have any changes been made to code or applications that call it?

    Posting your workbook would the best way to troubleshooting any problems in the code.

  9. #9
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155

    Re: troubleshoot code that no longer saves files within a newly created folder

    Is there a way for someone to test the code on a new work book?
    Mine has to much info to put online.

  10. #10
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155

    Re: troubleshoot code that no longer saves files within a newly created folder

    the code succesfully creates a new folder in the location it is supposed to.
    when it creates the file, off of the following code,

    Please Login or Register  to view this content.
    I am now getting a new error message.

    "Run-time error '1004'
    microsoft excel cannot acces the file
    'c:\FILEPATH\90F9C300'. There are several possible reasons

    .the fike name or path does not exist
    . the file is being used by another program.

    I am not sure that it is the code as I usea similar one and it works fine.

    Any ideas?

    Again any help would be appreciated.

  11. #11
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155

    Re: troubleshoot code that no longer saves files within a newly created folder

    I attempted to change the file path location by sending it to my desktop. i Recieved the same message.

  12. #12
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155

    Re: troubleshoot code that no longer saves files within a newly created folder

    I solved the issue by resaving the book manually with a new name and then breaking all links.
    I am still not certain why it failed, but it is fixed now.
    Thank you for all your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How To save entire book Within a newly created Folder
    By TBM in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-23-2018, 10:33 AM
  2. Macro to Move Files from a Folder to Newly created folders based on value in a cell
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2015, 08:04 PM
  3. [SOLVED] Save copy to newly created directory in the existing folder structure
    By wpryan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-28-2015, 04:20 AM
  4. [SOLVED] Need help opening a newly created folder and placing files into it
    By gleppelman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-13-2013, 04:24 PM
  5. Macro for copying specific data from excel files in a folder to a newly created excel file
    By Raju Radhakrishnan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2012, 02:24 PM
  6. Update master list with newly created files
    By alaskangrown in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-13-2011, 09:30 AM
  7. Creating a file in a newly created folder.
    By AnthonyWB in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-12-2010, 03:01 PM

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