+ Reply to Thread
Results 1 to 4 of 4

Cannot run macro

Hybrid View

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    Indore, India
    MS-Off Ver
    Office 2007
    Posts
    18

    Cannot run macro

    Hi,

    I am facing problem in this file, I am calling macro on clicking button, first button works fine but while clicking on second button it gives error.

    "Cannot run the macro 'yogendra1.xlsm!Button_Click'. The macro may not be available in this workbook or the macro might be disabled"

    I have already checked macro setting, all macros are enable.

    Here what i want do do in my work sheet, I want to archive values from raw sheet to Sheet1 Sheet2 Sheet3 and so on by clicking on button in raw sheet.

    Thanks for your help
    Aatif.
    Attached Files Attached Files
    Last edited by aatif0712; 06-28-2014 at 04:54 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Cannot run macro

    May be:
    right click on 2nd button, Assign macro, select Archivedata2 and click OK.
    ________________________________________________________
    If your problem is solved, update the thread as SOLVED: Go to the top of the first post-Select Thread Tools-Select Mark thread as Solved OR - Go to the first post - Click edit- Click Advance- Just below the word "Title:" you will see a dropdown with the word No prefix.- Change to Solve- Click Save.

    Show your gratitude to the person who helped you solving your problem by clicking on star button at the bottom of such post.

  3. #3
    Registered User
    Join Date
    06-25-2014
    Location
    Indore, India
    MS-Off Ver
    Office 2007
    Posts
    18

    Re: Cannot run macro

    Quote Originally Posted by haripopuri View Post
    May be:
    right click on 2nd button, Assign macro, select Archivedata2 and click OK.
    Thanks man it works...

  4. #4
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Cannot run macro

    Hi aatif0712,

    Please check the attached macro file.
    1) Your first button csv calls function ArchiveData1() in Module1.
    2) But your second button calls function Button5_Click which is not available any where in the macro hence it is giving the error.
    3) You need to reassign the function on second button click which is available in the .xlsm file.


    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

+ 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] Macro to show Which macro didnt work in a nested macro
    By akhileshgs in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-10-2013, 03:21 AM
  2. Perform macro "on open" specific file- store macro in Personal Macro Workbook?
    By thompssc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2012, 12:38 PM
  3. lookup macro, solver macro, realtime macro
    By xelhelp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2011, 06:14 PM
  4. Cannot find macro error when running a macro from a macro in a diffrent workbook.
    By Acrobatic82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2010, 09:22 AM
  5. Macro calling another Macro: "The macro 'Personal.xls!FindChar"
    By William Benson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2005, 09:05 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