+ Reply to Thread
Results 1 to 14 of 14

VBA Script not getting trigger for automatic calculation

  1. #1
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    848

    VBA Script not getting trigger for automatic calculation

    Dear Experts,

    I am using the below script in the combobox for go to the selected worksheet and hide non active worksheets but some time it triggers automatic calculation and go to the selected worksheet and sometimes not and incase if not triggers automatically then i do click on calculate now. Is it possible to fix this error.

    Please Login or Register  to view this content.
    Request to you kindly do help me out.

    Many thanks and kind regards,

    Neilesh
    Last edited by Neilesh Kumar; 04-27-2018 at 01:32 AM. Reason: completing the Info

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,906

    Re: VBA Script not getting trigger for automatic calculation

    With just the code it is difficult to tell since I do not have the rest of the information but I suggest you look at the code and add the text in RED

    Please Login or Register  to view this content.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,153

    Re: VBA Script not getting trigger for automatic calculation

    Or try maybe this code:

    1. UserForm1 module:
    Please Login or Register  to view this content.
    Before you run the macro, hide sheets except one with any name (of course, one in the names range of your sheets).

  4. #4
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    848

    Re: VBA Script not getting trigger for automatic calculation

    Dear Experts, The combobox is still the same after opening the workbook it works for 2 or 3 changes then it stucks then for every selection change i need to click on calculate now. Please help me.

  5. #5
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,153

    Re: VBA Script not getting trigger for automatic calculation

    ???
    A small change in the code:
    (see attachment)
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    848

    Re: VBA Script not getting trigger for automatic calculation

    Hi porucha vevrku, Thank you for your support. I do have combobox with list of 22 files for go to the selected worksheet and hide the rest but the provided solution here is for the userform. So do i need to create the userform for the 22 worksheet list.

  7. #7
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,906

    Re: VBA Script not getting trigger for automatic calculation

    Yes well you can dynamically add any number of worksheets, just populate the userform on opening with all the available worksheet names?

  8. #8
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    848

    Re: VBA Script not getting trigger for automatic calculation

    And the range is given for combo box from sheet2 cell AC2:AC24.

  9. #9
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    848

    Re: VBA Script not getting trigger for automatic calculation

    Dear expert based on provided range criteria can you please create a sample workbook with userfom and script .

  10. #10
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,906

    Re: VBA Script not getting trigger for automatic calculation

    If you use your imagination you could do it yourself too
    Attached Files Attached Files

  11. #11
    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,535

    Re: VBA Script not getting trigger for automatic calculation

    Dear expert based on provided range criteria can you please create a sample workbook with userfom and script .
    The way this usually works is that YOU, the OP, provides a sample workbook with typical data and expected results together with all your code. You shouldn't expect anyone else to do that for you (imagination or not). Kudos to Keebellah for having a go.
    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


  12. #12
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    848

    Re: VBA Script not getting trigger for automatic calculation

    Dear Expert TMS, as I am not familiar with the VBA so that is only reason to create a sample workbook with the script because I was completely not getting how to use userform in workbook as dropdown for selecting the worksheet.

    I do apologise for the same. I would surely take care of henceforth.

  13. #13
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,153

    Re: VBA Script not getting trigger for automatic calculation

    1.
    Quote Originally Posted by Neilesh Kumar View Post
    ...combobox with list of 22 files ... 22 worksheet list.
    Quote Originally Posted by Neilesh Kumar View Post
    ...from sheet2 cell AC2:AC24
    From "ac2" to "ac24" there are 23 sheets

    2. Continuing with Keebellah's corrections to my corrections to your corrections to your corrections of our corrections, etc.
    ... : ( ... : | ... : () ... : ) ... : )) ... :

    You have now enough code, to do something yourself ... : ) ...
    Attached Files Attached Files

  14. #14
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    848

    Re: VBA Script not getting trigger for automatic calculation

    Thank you so much dear experts for your precious and valuable support.
    Last edited by Neilesh Kumar; 04-28-2018 at 12:52 AM.

+ 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] activex combobox to trigger automatic sheet code
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-23-2016, 01:56 PM
  2. Need a 2nd Outlook rule to trigger a 2nd script.
    By Agent-311 in forum Outlook Programming / VBA / Macros
    Replies: 6
    Last Post: 03-10-2015, 03:39 PM
  3. Automatic macro trigger
    By Esuric in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-29-2014, 05:01 PM
  4. VBA to trigger/run a Shell script in Unix server
    By sabariurs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-04-2013, 03:34 AM
  5. Can I trigger a VBA script without pausing Outlook for the duration?
    By baldmosher in forum Outlook Programming / VBA / Macros
    Replies: 5
    Last Post: 08-05-2013, 07:19 AM
  6. [SOLVED] Prevent automatic combobox event trigger
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-09-2006, 04:00 PM
  7. Replies: 0
    Last Post: 10-16-2005, 03:05 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