+ Reply to Thread
Results 1 to 3 of 3

Assign macro with parameter to shape based on shape location

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    Boston
    MS-Off Ver
    Excel 2013
    Posts
    2

    Assign macro with parameter to shape based on shape location

    Hi,

    I am trying to create buttons on spreadsheet that will hide/unhide rows, so I created the following macro to do the hiding part, and another macro to assign macro to shapes. However, the macro assigned to the shape cannot run correctly:

    Please Login or Register  to view this content.
    When I click the button, nothing happened
    Last edited by bobo3127; 01-23-2014 at 11:17 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Assign macro with parameter to shape based on shape location

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-23-2014
    Location
    Boston
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Assign macro with parameter to shape based on shape location

    code tag added

    Quote Originally Posted by Norie View Post
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

+ 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. Select a shape based on a cell value and update the shape when value changes
    By BigAl99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2013, 12:06 PM
  2. [SOLVED] Use a button to control a macro that inserts an image into a shape or resets the shape
    By nwb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2013, 04:41 PM
  3. Replies: 0
    Last Post: 11-30-2012, 01:29 PM
  4. macro to assign cell to shape
    By jw01 in forum Excel General
    Replies: 1
    Last Post: 07-25-2011, 02:36 PM
  5. Shape size based on text in shape
    By mwc48910 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2011, 05:43 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