+ Reply to Thread
Results 1 to 8 of 8

Macro updating after selecting another sheet and back to Macro enabled sheet?

  1. #1
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Macro updating after selecting another sheet and back to Macro enabled sheet?

    Hi Guys i am new to using Macros i have searched below mentioned codes from Google. Macro Code work perfectly but they dont update the sheet. Macro updating after selecting another sheet and back to main sheet. I have Bar/Column Charts on main sheet which update as per Macro Hid/Unhide rows. I want to share this file with my boss but how can i told him that First Select from Drop list and than select another sheet to update the charts. I want to update macro staying on same sheet. Please help.

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    02-24-2016
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    92

    Re: Macro updating after selecting another sheet and back to Macro enabled sheet?

    Hello,

    In the ribbon on tab Formulas you can set Calculation Option to Manual.


    Then add this
    Please Login or Register  to view this content.
    And advise your boss to hit the [F9] key to performe the calculation which updates the chart.

    Hoop this helps,
    WouterM
    The Netherlands

  3. #3
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: Macro updating after selecting another sheet and back to Macro enabled sheet?

    where to add this after the above mentioned code or after any particular line

  4. #4
    Registered User
    Join Date
    02-24-2016
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    92

    Re: Macro updating after selecting another sheet and back to Macro enabled sheet?

    Place it above your code.

  5. #5
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: Macro updating after selecting another sheet and back to Macro enabled sheet?

    is there any other way where we don't need to press F9. it will auto generate. bcz bosses don't like to work hard

  6. #6
    Registered User
    Join Date
    02-24-2016
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    92

    Re: Macro updating after selecting another sheet and back to Macro enabled sheet?

    As an alternative you can

    1) Not set the calculation option to Manual.

    2) Use this event on the sheet, replacing the previous code:
    Please Login or Register  to view this content.
    Private Sub Worksheet_Change(ByVal Target As Range)
    Call Worksheet_Activate
    End Sub

  7. #7
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: Macro updating after selecting another sheet and back to Macro enabled sheet?

    oh thank you dear thank you soooooo much finally solved

  8. #8
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: Macro updating after selecting another sheet and back to Macro enabled sheet?

    if you were near to me i would definitely kiss you thank you so much. for solving this

+ 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. Replies: 1
    Last Post: 08-08-2015, 05:43 PM
  2. [SOLVED] save sheet as macro enabled workbook using codes
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-29-2014, 02:23 PM
  3. macro enabled excel sheet on a network?
    By zacmac83 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2013, 08:46 AM
  4. Sharing macro enabled excel sheet
    By arunbjaidev in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2013, 03:53 AM
  5. Replies: 2
    Last Post: 04-10-2013, 04:43 AM
  6. [SOLVED] Need a macro to copy dates & data from one sheet to an updating archive sheet
    By pbj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2013, 06:58 PM
  7. New Workbook from Macro Enabled Template Lost Sheet Protection
    By wthomas206 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-23-2009, 06:09 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