+ Reply to Thread
Results 1 to 3 of 3

Combine & Shorten Code

  1. #1
    Registered User
    Join Date
    04-07-2010
    Location
    Qatar
    MS-Off Ver
    Excel 2007
    Posts
    25

    Combine & Shorten Code

    Hi Guys,

    I have a code shown below and what I want is:

    1. How to shorten the code?
    2. And I don't want them to show each sheet during updating.

    Please Login or Register  to view this content.
    Thanks & best regards.
    Last edited by QPM; 04-11-2010 at 04:48 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Combine & Shorten Code

    Try this

    Please Login or Register  to view this content.
    This assumes that you have a dynamic Data Source Table that you want to copy to a Chart Data Table, in reverse order.

    You can run this code with all the chart sheets hidden.

    Try the demo book.

    Hide sheet "2.4.1 T1-Chart" where I have put some dummy data

    Run either macro "Test" or "Update_AllCharts"

    Unhide sheet "2.4.1 T1-Chart and check the result

    I have set the Option General to R1C1 reference for easier reading of the code.

    Hope this helps

    If you need any further information, please feel free to ask further

    However

    If this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody!
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-07-2010
    Location
    Qatar
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Combine & Shorten Code

    Hi Marc,

    Thanks a lot for your reply. It works perfectly. I really appreciate it.

    Thanks again man!

    Regards.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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