+ Reply to Thread
Results 1 to 4 of 4

Need Help Changing a Working Macro - Array Issue?

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need Help Changing a Working Macro - Array Issue?

    Hello,

    Below is the code I am currently using and it working as intended. I have another macro importing "export" sheets. As of now there has always been 6 sheets imported so I coded it as follows with the segment in question in bold.

    Please Login or Register  to view this content.


    Now, there wont always be 6 sheets imported in. How can I re-write this to allow flexibility in how many "Export" sheets will be added to my file? The sheets will always be called Export then Export (#) for however many end up being imported in.



    Thank you!

    -Taylbren

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Need Help Changing a Working Macro - Array Issue?

    See next code and complte it with your code
    Please Login or Register  to view this content.
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    01-31-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Need Help Changing a Working Macro - Array Issue?

    Here's my full macro:

    Please Login or Register  to view this content.
    Where should I re set up the dim for sht? I feel like I may need to change this entire macro in order to make it look for any export sheet.

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Need Help Changing a Working Macro - Array Issue?

    Here your code updated => NOT TESTED


    Please Login or Register  to view this content.

+ 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. Cell Color Change Macro not working after changing one word
    By jonesthemuso in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2019, 04:36 PM
  2. [SOLVED] Attempt to add array list to macro not working
    By capson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-02-2014, 02:27 PM
  3. Replies: 2
    Last Post: 10-03-2012, 11:18 AM
  4. Macro changing calculation to manual not working
    By TactileMist in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2012, 06:24 AM
  5. issue with changing sheet name with macro
    By Kezwick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-20-2011, 04:03 AM
  6. Text Box name changing, macro to delete not working
    By NMullis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2008, 05:43 PM
  7. array not working as a macro
    By censura in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-14-2007, 07:55 AM

Tags for this Thread

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