+ Reply to Thread
Results 1 to 7 of 7

Need help with breaking code

  1. #1
    Registered User
    Join Date
    04-27-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2003 - 2010
    Posts
    19

    Need help with breaking code

    Is there anyone who can help suggest as to what is causing the break or help read the attached code?

    I keep breaking on "Set .."
    Attached Files Attached Files
    Last edited by wanian7; 08-01-2015 at 11:18 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Need help with breaking code

    my assumption is that Sheets(sScenarioID) Doesn't exist...
    !If all your troubles are solved, then so is the thread. Show this by marking it so using thread tools at the top of the page.
    If I helped do this, then please show your appreciation by awarding rep points.
    <------ Button for that is over there

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Need help with breaking code

    What is wbTGS. ?

  4. #4
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    853

    Re: Need help with breaking code

    Quote Originally Posted by JOHN H. DAVIS View Post
    What is wbTGS. ?
    I think your on to it. Are you using Option Explicit to help ensure you declare all variables.

    Should wbTGS actually be wbCS which is the Workbook?

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Need help with breaking code

    Please upload a sample of your workbook, not a picture of your data (especially side-ways pics). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff) - and, depending on what browser is being used, some pics dont even show up on the forum

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    04-27-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2003 - 2010
    Posts
    19

    Re: Need help with breaking code

    This answered the question!!! Thanks so much PTmukloon.

  7. #7
    Registered User
    Join Date
    04-27-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2003 - 2010
    Posts
    19

    Re: Need help with breaking code

    Hi FDibbins - So sorry that was no a lazy stunt out on my part. I was in school and the firewall kept rejecting my copying and pasting of the data.
    Its now resolved. I really appreciate your post and will definitely be sensitive to the points raised.

    Kind regards,
    Ian

+ 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. Why is this code breaking...
    By pasqualebaldi in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-17-2015, 03:02 PM
  2. Code breaking at one line
    By concatch in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-25-2012, 08:19 AM
  3. Syntax for breaking code lines
    By jazbath in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-22-2010, 09:16 PM
  4. Breaking Out State Code
    By NFJim in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-20-2009, 12:05 PM
  5. Breaking down a code......
    By p3te2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-25-2007, 05:47 AM
  6. [SOLVED] Breaking password on VB Code
    By Barb Reinhardt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2006, 12:15 PM
  7. Code Breaking
    By dok112 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2006, 04:30 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