+ Reply to Thread
Results 1 to 3 of 3

error with simple Application.CountBlank script when a different sheet is activated

  1. #1
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    error with simple Application.CountBlank script when a different sheet is activated

    I have the following which works fine when I'm on Sheet 1. When I select any other sheet and run the script, I get an error, though. What did I miss?

    Please Login or Register  to view this content.
    You either quit or become really good at it. There are no other choices.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: error with simple Application.CountBlank script when a different sheet is activated

    Qualify Sheets(1) for each Cells reference

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: error with simple Application.CountBlank script when a different sheet is activated

    That works! Thank you.

+ 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. Schedule Application.Ontime runs only when activated
    By VillaLion in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-24-2014, 01:30 PM
  2. Runtime error off simple script
    By DadaaP in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-06-2013, 10:41 PM
  3. Countblank - Need code to update countblank numbers as data is updated
    By agregory12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2013, 01:49 AM
  4. Excel won't open file after being activated by another application
    By HitTheEXCELerator in forum Excel General
    Replies: 0
    Last Post: 10-14-2012, 04:00 PM
  5. application or object defined error raised by some simple construct
    By aretai in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-21-2010, 02:27 AM
  6. Error sheet when macro's are not activated
    By jgmiddel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2006, 05:28 PM
  7. [SOLVED] Application-Defined or Object-Defined Error on simple code
    By Fid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2005, 04:05 PM
  8. [SOLVED] Application-Defined or Object-Defined Error on simple code
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-22-2005, 05:06 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