+ Reply to Thread
Results 1 to 4 of 4

Attempt to add array list to macro not working

  1. #1
    Forum Contributor
    Join Date
    07-11-2010
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2016
    Posts
    308

    Attempt to add array list to macro not working

    Hello,

    I have a proper case macro that I need to run on multiple columns.

    I am tiring to add an array of header names and so run the from this list.

    When I run the compound macro nothing happens, no errors but no execution of the propercase macro either

    Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,673

    Re: Attempt to add array list to macro not working

    Try putting Option Explicit as the first line in the module.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    07-11-2010
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2016
    Posts
    308

    Re: Attempt to add array list to macro not working

    Hello shg, that fix it, what should have told me to do this?, thank you

  4. #4
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,673

    Re: Attempt to add array list to macro not working

    If you always use Option Explicit, the compiler will tell you when you have an undeclared variable, as you did:

    Please Login or Register  to view this content.
    instead of

    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. [SOLVED] Working hours attempt URGENT
    By maxward in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-29-2014, 08:23 AM
  2. [SOLVED] My Attempt in using an Array but getting an error (3265)
    By efisher in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-13-2014, 03:31 PM
  3. Replies: 4
    Last Post: 03-17-2011, 09:24 AM
  4. Excel Keeps crashing after macro attempt
    By phschris1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-28-2009, 10:24 PM
  5. 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