+ Reply to Thread
Results 1 to 2 of 2

Macro assigned to button does not stay assigned

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    Panama
    MS-Off Ver
    Excel 2007
    Posts
    13

    Macro assigned to button does not stay assigned

    My research did not give any related result, so here is my problem:

    In one worksheet of my workbook I create a query from another workbook. The data that populates the WS are all unformatted and the column widths are set automatically which is quite ugly as some are very large. So I recorded a Macro which would format the WS in a nicer way after running the query.
    The macro should then be called by a floating button.

    The creation of a floating button works fine in this WS ("Floating Button"), but I cannot run the macro because each time I assign it to the button and click on the button, nothing happens. When I check whether the macro is still assigned, the field is empty.
    I suspected that this may be an issue with the floating button, but if I delete the subroutine that makes it float, the same thing happens.
    Could it be that buttons don't work in WS that contain a query, or what may be the reason?

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Macro assigned to button does not stay assigned

    Without seeing your code, it a little difficult to comment...

+ 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. How to know what macro assigned to the button
    By ronlau123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2017, 04:11 AM
  2. Assigned Macros don't stay assigned?!?
    By paesu57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-10-2014, 10:49 AM
  3. [SOLVED] Macro assigned to button with change of tab name
    By Wskip49 in forum Excel General
    Replies: 2
    Last Post: 06-20-2012, 10:52 AM
  4. Knowing what Macro was assigned to a Button
    By sighlent1 in forum Excel General
    Replies: 2
    Last Post: 05-13-2010, 04:30 PM
  5. Hide Button After Assigned Macro Has Run
    By Tyler_Durden in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2009, 02:01 PM
  6. Macro assigned to a button
    By rmanthorpe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2006, 07:22 AM
  7. [SOLVED] How do I know what macro is assigned to a button?
    By Denise in NC in forum Excel General
    Replies: 3
    Last Post: 04-03-2006, 09:35 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