+ Reply to Thread
Results 1 to 2 of 2

VBA for sampling Size calculation. This takes so long but not respond.

  1. #1
    Registered User
    Join Date
    05-20-2021
    Location
    Malaysis
    MS-Off Ver
    365
    Posts
    17

    VBA for sampling Size calculation. This takes so long but not respond.

    I have created a VBA by reading the article to calculate the sample size. After writing VBA Now I am trying to run VBA its is not responding. It taking time but no response.
    Please have a look attached VBA and base article.

    Note: After downloading the excel file change extension xlsx into xltm.
    Attached Files Attached Files
    Last edited by Montecarlo1; 06-03-2021 at 10:24 PM.

  2. #2
    Valued Forum Contributor Hydraulics's Avatar
    Join Date
    07-15-2018
    Location
    Udine - Italy
    MS-Off Ver
    Office 365
    Posts
    373

    Re: VBA for sampling Size calculation. This takes so long but not respond.

    In the following instruction

    Please Login or Register  to view this content.
    B6 is a variable declared but with no value assigned, VBA sets its value to 0, and the loop never ends. Just replace it with b and everything should work.

    HTH,

    Francesco
    Last edited by Hydraulics; 06-04-2021 at 02:28 AM.
    Aim high or don't even try.
    ---------------------------------
    If your question has been answered, don't forget to mark the thread as SOLVED.
    If you find an answer helpful, click on the star icon at the bottom of the post.

+ 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. Calculation of Formula takes a long time
    By Surendra.mishra7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-26-2019, 03:18 PM
  2. The code takes ages to respond. Why?
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2014, 06:51 AM
  3. It takes 1-2 minutes to respond when changing a value of cell
    By jayce_sos in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2014, 03:00 AM
  4. [SOLVED] Sumproduct cell range grows and calculation takes too long
    By rhonalddean in forum Excel General
    Replies: 17
    Last Post: 11-20-2012, 08:23 AM
  5. Calculation takes long time
    By dorend in forum Excel General
    Replies: 10
    Last Post: 12-13-2011, 06:17 PM
  6. Excel - Find Function Takes Very Long
    By winston2 in forum Excel General
    Replies: 0
    Last Post: 01-17-2011, 08:00 PM
  7. Time Calculation - How long a macro takes to run
    By cdb in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-31-2005, 04:06 AM

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