+ Reply to Thread
Results 1 to 4 of 4

Macro Code Debug When No Data

  1. #1
    Forum Contributor
    Join Date
    06-04-2013
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    110

    Macro Code Debug When No Data

    Good Morning,

    I am currently using the following code to change the bar color on a stacked graph.

    Please Login or Register  to view this content.
    The issue i am having is if i choose a range that has no records, the code debugs as it has nothing to colour.

    Is there a formula (or that of the like) to say somthing along the lines of IF Blank then do nothing else above code?

    Or a simpler way? Any help pwould be greatly appreciated.

    Thanks
    Ross

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,565

    Re: Macro Code Debug When No Data

    Maybe just

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    06-04-2013
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    110

    Re: Macro Code Debug When No Data

    My Hero!! Thank you !

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,565

    Re: Macro Code Debug When No Data

    You're welcome. Thanks for the rep.

+ 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] DEBUG error for data with macro code for range cell
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2016, 11:18 AM
  2. VBA Code Runs in Debug Mode But Returns Type Mismatch Error Outside Debug Mode
    By valerie.k.chiang in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-24-2014, 03:48 PM
  3. Macro Debug Error in VBA Code
    By la90292 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-10-2013, 11:27 PM
  4. [SOLVED] Debug: How to debug this code?
    By reach78 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-25-2013, 07:16 AM
  5. HELP, trying to debug this code...
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2011, 12:05 PM
  6. OpenText function in macro hangs unless stepping through code in debug
    By Part-Time Coder in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2009, 05:32 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