+ Reply to Thread
Results 1 to 5 of 5

Macro Button on Worksheet Not working

  1. #1
    Registered User
    Join Date
    06-29-2012
    Location
    Chester
    MS-Off Ver
    Excel 2010
    Posts
    9

    Macro Button on Worksheet Not working

    Hi,

    I have placed a Button on a worksheet which is assigned to a macro. The macro content is as follows:-

    Please Login or Register  to view this content.
    However, when I press the button, the macro does not get the required information. If I then use excel view macro and then run it, it works fine. Am I doing anything wrong here?

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Macro Button on Worksheet Not working

    Wich kind of button is it? Form control? ActiveX or a shape with an asigned macro?
    Please take time to read the forum rules

  3. #3
    Registered User
    Join Date
    06-29-2012
    Location
    Chester
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Macro Button on Worksheet Not working

    I am using XL 2010 and the button is just a shape which is assigned to Macro 3

  4. #4
    Forum Contributor
    Join Date
    05-25-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    194

    Re: Macro Button on Worksheet Not working

    post a sample workbook and we can resolve your issue

  5. #5
    Registered User
    Join Date
    06-29-2012
    Location
    Chester
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Macro Button on Worksheet Not working

    Guys,

    I found my problem. I was selecting a range but had not selected a sheet, hence it obviously did not know where to go to carry out the code!
    Sorry for being so dumb, but I am learning

+ 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