+ Reply to Thread
Results 1 to 4 of 4

Run Time 1004 - App Defined or Object defined error with String defined path structure

  1. #1
    Registered User
    Join Date
    11-05-2008
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    67

    Run Time 1004 - App Defined or Object defined error with String defined path structure

    Hi Folks,

    I have a scenario where I print reports for management based upon job task, these reports are weekly under most cases and range across different staff levels. To counteract this and minimise code I have the following basic code

    Please Login or Register  to view this content.
    This code works but requires manual change every week for the report name and also it has too many fixed variables for my liking.

    Changing the code to the include variables causes issues when using ReportWeek inside the path name, changing this to a separate variable also does not change the result, hard coding this into the code which works as above will not provide the required result due to the changes needed to be made each week.

    Please Login or Register  to view this content.
    Does anyone have any ideas on how to rectify this issue? to allow correction of my actual code base as below

    Please Login or Register  to view this content.
    Thanks in advance

  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: Run Time 1004 - App Defined or Object defined error with String defined path structure

    Hello sarails ,

    It would be best if you post the workbook.
    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
    Registered User
    Join Date
    11-05-2008
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    67

    Re: Run Time 1004 - App Defined or Object defined error with String defined path structure

    Leith,

    After annonmising the book and shrinking it as much as I could it's down to just over 2mb here

    Thanks

    Iain

  4. #4
    Registered User
    Join Date
    11-05-2008
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    67

    Re: Run Time 1004 - App Defined or Object defined error with String defined path structure

    Problem resolved

    This code
    Please Login or Register  to view this content.
    Should have been this
    Please Login or Register  to view this content.
    What's the old saying - Garbage In - Garbage Out
    or was it
    User Error - Replace User and press any key to continue

+ 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