+ Reply to Thread
Results 1 to 7 of 7

Simplfy VBA code using Array set & loop

  1. #1
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    Simplfy VBA code using Array set & loop

    Hi,

    Can anyone help me to simplfy this code using Array set & loop. I have to create copy for 20 worksheets


    here is the sample of 4 worksheets

    Please Login or Register  to view this content.

  2. #2
    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: Simplfy VBA code using Array set & loop

    can u please provide full code with sample workbook...
    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.

  3. #3
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    Re: Simplfy VBA code using Array set & loop

    Hi Naveed,

    The full code is too long and involves too many function. I thought just to simplfy this code.

    e.g. From Sheets("ANNEXURE 1 (i)").Select, create copy of 4 worksheets & rename it

  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: Simplfy VBA code using Array set & loop

    Try replacing your provided code with this below one and confirm me

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    Re: Simplfy VBA code using Array set & loop

    Hi Naveed,

    Thanks a lot

  6. #6
    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: Simplfy VBA code using Array set & loop

    Glad I could help you

    1. If the suggestion helps you, then Click * to Add Reputation
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  7. #7
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    Re: Simplfy VBA code using Array set & loop

    Hi Naveed,

    Are you familiar with update link from excel to power point? to create VBA code for it,

    Appreciate if you could help me

    http://www.excelforum.com/excel-prog...wer-point.html

+ 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. Code to Loop through a 2d array
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-03-2013, 06:30 AM
  2. Loop new messages containing a table, populate a dynamic array, paste array to Excel
    By laripa in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2013, 07:20 AM
  3. Is there a macro to simplfy our life when copying excel tables to word?
    By Naja in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-15-2013, 03:52 AM
  4. Help me Simplfy and Speed Sort Routine
    By Orada in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-02-2012, 05:31 PM
  5. [SOLVED] How to simplfy If & Sumif Code
    By Martin in forum Excel General
    Replies: 1
    Last Post: 04-27-2006, 05:35 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