+ Reply to Thread
Results 1 to 8 of 8

Display same values in 3 differnt sheets.

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    4

    Display same values in 3 differnt sheets.

    Hello Everyone,

    I am new to programming, I am sorry if my question is too simple.

    I have a workbook with 37 sheets,it is basically for tax calculation.
    - I will get a Start and end date and I will break them in to Calendar year -Fiscal year. Which again depends on the Country selected for Home and Host from other sheet.With all the bordering in run time.
    -So I need this display on 3 differnt sheets on one single click
    -I have written[copied the same macro] twice. I know excel vba executes sequentially.
    -While every thing runs and works beautifully it takes way lot of time...to get executed.
    -Is there a way out so that I can get the thing executed quickly....as far as I know I have followed the Global variable declaration etc which can reduce quite a bit of time.
    Thank you for the help
    Regards
    Ram

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Display same values in 3 differnt sheets.

    Can you post the code you have so far?
    Using
    Application.screenupdating = false
    and
    application.screenupdating = true
    before and after the main body of code is usually the first step.

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Display same values in 3 differnt sheets.

    Here is part of my code ....I have done the application.screenupdating... I have the same piece of code with another country refering in another sheet which will display values on two other sheets
    Thanks for the quick response.
    Please Login or Register  to view this content.
    Moderators note: code tags added for you - this time
    Last edited by FDibbins; 08-05-2013 at 11:23 AM. Reason: code tags added

  4. #4
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Display same values in 3 differnt sheets.

    Please use code tag while posting code on thread edit your thread and follow the below step
    type like this below
    [code]
    here your code
    [\code]
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Display same values in 3 differnt sheets.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Display same values in 3 differnt sheets.

    Other than your while loop there doesn't seem anything in that block that would slow it down considerably. You can try setting the stuff in the loop to an array and then assigning that to the worksheet range in one go. It's hard to say how much use that would be without all the other moacrosthat get called up.

    Could you edit your post to include code tags and maybe post the workbook in question if possible (removing all sensitive data).

  7. #7
    Registered User
    Join Date
    04-18-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Display same values in 3 differnt sheets.

    I am really sorry for this ..I will come back with the question and the code correctly formatted as per the rules. I see how annoying it looks. Thanks a lot for your inputs .

  8. #8
    Registered User
    Join Date
    04-18-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Display same values in 3 differnt sheets.

    Hi Yudlugar,
    Thanks a lot I will update the Workbook. Thank you and sorry if you had to put in extra effort to go through the code.

+ 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. Compare Two columns in differnt sheets
    By agarcia0742 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-13-2012, 09:42 AM
  2. VBA get value from differnt sheets
    By Rushdy Najath in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-29-2012, 09:44 AM
  3. Add up differnt variables in differnt named ranges
    By danielgri14 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-09-2011, 09:40 PM
  4. Macro to use time stamp from two differnt sheets and export row #
    By jblewis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2010, 01:36 PM
  5. display data from a list in a differnt WS?
    By legepe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2009, 09:44 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