+ Reply to Thread
Results 1 to 3 of 3

Is there a function similar to =countif for macros?

  1. #1
    Registered User
    Join Date
    07-08-2013
    Location
    Fort Wayne, IN
    MS-Off Ver
    Excel 2010
    Posts
    61

    Is there a function similar to =countif for macros?

    I currently have a large macro covering data on 31 sheets. The macro works currently as is but what happens requires a lot of user input and I would like to get rid of that.

    The macro currently asks the user is there is data on sheet 1. If the user says yes, it copies and pastes the range (A13:P72) into sheet 32.
    The macro asks this yes or no question for nearly every sheet. It's annoying to have to push yes 30 times....

    I was wondering if there was a way to go from sheet to sheet checking to see if there was data in the following ranges (A13:B72 and P13:P72)
    if yes, copy and paste, if no, check the next page.

    Any ideas? - hopefully this is explained well enough.

    Thanks again everyone for the help.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Is there a function similar to =countif for macros?

    The countif functions works the same as in excel, all you need to is precede the function with application as there is no counitf VBA function. You can get it from excel.

  3. #3
    Registered User
    Join Date
    07-08-2013
    Location
    Fort Wayne, IN
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Is there a function similar to =countif for macros?

    I see. Well that seems kind of silly. Thank you for the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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