+ Reply to Thread
Results 1 to 2 of 2

Macro wont run with macros enabled

Hybrid View

  1. #1
    Registered User
    Join Date
    09-24-2009
    Location
    asdasd
    MS-Off Ver
    Excel 2003
    Posts
    22

    Macro wont run with macros enabled

    I cannot seem to get this macro to run, even though all macros are allowed.
    It will run from the actual macro screen but not the spreadsheet.

    Ideas?

    Or, better yet, is there a way to create a button like this, that will not require others to enable macros?

    Edit: I believe I fixed this by creating another macro after macros were enabled.
    However, will others that use this spreadsheet have to enable macros to use this button?
    Attached Files Attached Files
    Last edited by tek0011; 09-09-2011 at 04:34 PM.

  2. #2
    Registered User
    Join Date
    08-30-2011
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Macro wont run with macros enabled

    I was able to get your excel to work with this code:

    
    Option Explicit
    
    Sub Macro1()
    '
    ' Macro1 Macro
    '
        Sheets("Sheet1").Range("E12:F1100").Select             'I added the Sheets reference
        Selection.ClearContents
    End Sub
    I also right clicked on the button and made sure it was associated with the right Macro and everything worked from there.

+ 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