+ Reply to Thread
Results 1 to 3 of 3

Form and Command button issues

  1. #1
    Registered User
    Join Date
    11-01-2024
    Location
    Manitoba
    MS-Off Ver
    2021
    Posts
    9

    Form and Command button issues

    Hi. I’m using Excel 2021 and Windows 11. Both are up to date. I’m copying data from a webpage. The macros are pasting the data and then deleting unneeded rows. The macros are working as they are supposed to work. My problem is the buttons to run the macros.

    I’ve inserted form buttons. I’ve assigned macros to the buttons. I’ve formatted the buttons to not move or size with the cells, and to be 1 X 5 cm in size. Most buttons (one doesn’t) change to a dark colour and remain a dark colour when clicked. It doesn’t matter whether I was in design mode or not. Also, when I save and close, and reopen the workbook, most buttons, other than that one, all move down to about row 100, and resize to a line for height. One time, that one button that is working properly resized to about 69 cm high when the workbook was opened.

    I’ve tried command buttons. I’ve “called” the macros to the buttons, with the names justifying to the macro names. I’ve formatted these buttons to not move or size with the cells. I’ve set the properties to the buttons for a set width, height, and location from left and top. Upon saving, closing and reopening the workbook, the bottom 3 buttons are moved down about 100 rows, or more. Also, the first button seems to work all the time, while the other buttons usually don’t work after using the first button. I am NOT in design mode.

    I have another workbook where the form button works as it should.

    I’ve copied the relevant information into a new workbook, including the macro code. I’ve set up new buttons. No change.

    Why are the buttons moving when the workbook is saved, closed and reopened? How do I stop it?

    Why are the form buttons changing to a dark colour and how do I stop this from happening?

    Why are the command buttons not running the macros when clicked?

    TIA
    Zookz

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2407
    Posts
    26,095

    Re: Form and Command button issues

    Welcome to the Forum Zookz!

    This button behavior is not normal, and I have not seen what you describe. (I have seen ActiveX buttons resize themselves in some situations, but that's not the same.) Are you willing/able to attach your file for inspection? Please remove any private data. If it's a concern you can even remove all the data as long as all the buttons and other controls and VBA remain intact.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    11-01-2024
    Location
    Manitoba
    MS-Off Ver
    2021
    Posts
    9

    Re: Form and Command button issues

    Yeah, I know that this is not normal button behaviour. That is my problem! The only thing that I didn't try was to restart my computer. Just tried that, didn't help.

    I've removed any personal info from the file. I've added a "Pasted2" worksheet that has a copy of pasted data. Shouldn't matter much as it isn't affecting buttons. That data will only work on the "Summary Strip" buttons.

    Thanks
    Zookz
    Attached Files Attached Files

+ 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] User Form Command Button
    By bb8371 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-20-2020, 03:42 PM
  2. [SOLVED] using form command button as toggle
    By Willardio in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2013, 06:07 AM
  3. [SOLVED] How to make a Command button run the "FORM" command to fill/populate a table?
    By jrobin7 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2012, 12:26 PM
  4. [SOLVED] Hide Command Button On Form
    By alyon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-24-2012, 12:04 PM
  5. Form - Command Button
    By shugg24 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-27-2010, 09:28 AM
  6. Form Command Button Problem..
    By Don in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2006, 09:20 PM
  7. [SOLVED] VB's Command Button vs Form's Command Button
    By Ronald Dodge in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2006, 09:30 AM

Tags for this Thread

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