ActiveX Multiselect Listbox working for one excel workbook but not working in another workbook - excel

I had created a activex multiselect listbox in one excel workbook in my machine. It was not working. On deleting MSForms.exd, it started working again. However, another excel workbook with the same piece of code for activex multiselect listbox is not working in my machine.

Same solution; restart your computer and before opening any office apps search out MSforms.exd again and delete all instances. this is apparently not a "once and for all" solution, I guess we're still waiting Microsoft's solution to their update 'faux pas.'

Related

Why doesn't my Shared Excel 365 sheet allow VBA buttons to work in the webpage version of the sheet?

My whole team uses Office 365. This is my first attempt using the online sharing 'co-authoring' feature in 365. I created a 5-6 person, team-use Excel spreadsheet as an ongoing check-off log for a common task. I put in VBA "Done" buttons for when a team member finishes a task.
The file is on our company's OneDrive online folder (which I read was a requirement for co-authoring to work), but when opened in a web-browser the macro buttons are disabled -see screenshot. The VBA button macros come back and work great only when a user clicks "Open in Desktop App" and works it directly from the app -see 2nd screenshot.
Is there a way for the macro buttons with their VBA code to work in the browser view of the spreadsheet?
Thanks for any suggestions!

Only Excel Splash Screen Visible after Launch while VB is Running

Of the many reports I've creating in Excel VBA, I've got one report that normally launches from a scheduler with a countdown timer that will pull external data, email, then automatically close if the user doesn't press a stop button before the query process begins. I've only inserted some code that clears all cell contents and formats on the worksheet where I once had formulas and conditional formatting. After saving the report, then launching by file association as before, now only the Excel splash screen is visible while VBA runs in the background. If I insert an "Exit Sub" anywhere in any procedure that runs, from beginning to end in the code prior to the "quit" call, the application becomes visible when the code stops. It opens normally if Excel is already open. I've found that even if I manually delete the cell contents and clear formatting and save the report on a working copy of the report, it does the same thing. At no time do I hide sheets, workbook, or application. I've only found it runs normally on my own personal PC Win7-64 and Excel 2016. None of the systems report an error in the workbook.
I've tried the following without results on our business network servers and Citrix Desktops with a variety of OS's and Excel versions:
Application visible
Foreground
Windows visible
Workbook visible
Worksheet visible
Deleting the sheet and writing data to the new sheet
Manually deleting the cell contents and formats on a working version
Re-creating the report from scratch with the same code, but it still does the same thing.
Excel 2010 and 2016
32 and 64-bit versions of Excel
Operating Systems - Windows 7, 10, Server 2016
Thanks.
When a macro is long in VBA, or the task then the display starts to flicker. I think you have the same issue. So, if this is the issue then try to set the screen update off in your VBA.
To do so, go to your macro and type this code i.e.-
Application.ScreenUpdating = False
Just confirm, if its helping.
I figured out an ugly workaround. I've created a sub to call on workbook_open(). It first makes the application invisible, opens a new workbook, closes the new workbook, then makes the application visible again.

Excel 2013 Crashes when Adding Userform in Visual Basic window

I have a user who just got a new computer (Windows 10 Pro running Office 2013) and he can no longer open a macro enabled workbook.
I finally identified that the Userforms are causing the issue when I created a new workbook and added some VBA to it. Everything worked fine until I went to insert a Userform, that's when it crashed. I did some additional testing and found he can open .xlsm files except when a userform is in the VBA.
I looked into the References in the VBA window and checked the libraries, he seemed to have what he needed and I added anything I thought was missing but nothing helped.
Visual Basic for Applications
Microsoft Excel 15.0 Object Library
OLE Automation
Microsoft Office 15.0 Object Library
Microsoft Forms 2.0 Object Library (keeps unchecking itself but even when checked doesn't help)
Ref Edit Control
What references could I be overlooking here?
The VBA code is not affecting it, I ran the opening code without any forms and it opened and enabled macros just fine.
What is preventing Excel from running a macro enabled workbook with userforms or adding a userform?

UserForm ActiveX controls not working on new machine

I built a workbook in Excel on my old machine that has a bunch of UserForms in it. One of the UserForms has an ActiveX spreadsheet control in it. This allows me to enter spreadsheet data into the UserForm. My old computer recently crashed so my IT department gave me a new machine that is running the same system (Microsoft Office 2010). Now, when I open the spreadsheet, I get:
Could not load some objects because they are not available on this machine.
I Googled this error and read through a number of pages. The first thing to try was installing Microsoft Office Web Components 11.0. Weirdly, this allows me to add a spreadsheet control to any UserForm I want to but I still cannot open the original sheet with all of its controls still in it.
Next, I tried these instructions but got no results.
Does anybody have any ideas?
Add a reference to Microsoft Forms 2.0 Object Library (found as FM20.dll)
Hth

i have a userform in excel which i want to convert to an addin or menu item in excel 2003

i have wriiten a small vba code(userform & modules associated) for concatenating files in a user inputed folderpath. Currently i have this placed in personal.xls and everytime after opening excel i press ALT+F11 and go to the userform and run it (press F5).
I want this userform to be placed in as an addin or menu item in excel (available for all spreadsheets).
I know i need to assign a macro to a menu-item i add, but i have many subs (both in userform & modules associated) and not have instantiated my userform anywhere. i don't know which of these subs i need to assign to menu-item.
MAIN GOAL: is i wan't a menu item (or addin) which when i click pops up the userform. (afterwards running same as when i ran it from visual basic editor).
THINGS TRIED: i tried copying the userform & modules to a new project and saving it as an excel addin (.xla file) and placed the addin in excel add-ins folder. I have selected the addin from Tools>Addins option in excel. But, i think this way i was not able achieve what i needed as i don't see any new option/menu-item added to excel.
Thanks in advance
ps: I'm new to vba and just started working on it a week ago, so give me more detail in your answers.
You did it right with add-in but in order to use your code you need to add menus, check this out.

Resources