Forum Widgets
Latest Discussions
VBA Code stops
Not sure what is going on... this was working and now all the sudden the code stops part way through. Here is the current code (linked to a button) Private Sub CommandButton2_Click() Dim cofCom As Object Set cofCom = Application.COMAddIns("SapExcelAddIn").Object Dim api As Object Set api = cofCom.GetPlugin("com.sap.epm.FPMXLClient") api.RefreshActiveWorkbook Application.ScreenUpdating = False ActiveWorkbook.Sheets("Spend Detail").Activate Sheet14.CommandButton2_Click Sheet14.CommandButton1_Click ActiveWorkbook.Sheets("Spend Detail 1").Activate Sheet21.CommandButton4_Click Sheet21.CommandButton3_Click ActiveWorkbook.Sheets("Spend Detail 2").Activate Sheet22.CommandButton6_Click Sheet22.CommandButton5_Click ActiveWorkbook.Sheets("Spend Detail 3").Activate Sheet23.CommandButton8_Click Sheet23.CommandButton7_Click ActiveWorkbook.Sheets("Spend Detail 4").Activate Sheet24.CommandButton10_Click Sheet24.CommandButton9_Click ActiveWorkbook.Sheets("Spend Detail 5").Activate Sheet25.CommandButton12_Click Sheet25.CommandButton11_Click ActiveWorkbook.Sheets("Spend Detail 6").Activate Sheet27.CommandButton14_Click Sheet27.CommandButton13_Click ActiveWorkbook.Sheets("Finance Input Sheet").Activate Application.ScreenUpdating = True End Sub The problem is that all tabs update for the refresh but for some reason, going to each sheet and clicking the buttons is not occurring now. It is essentially stopping at line 6 and I have tried removing the screenupdating false and true and that did not make any difference. Just like for some reason the code stops and it was working a week ago. Any suggestions?AOSPWBAug 07, 2026Brass Contributor52Views0likes4CommentsBenutzerdefinierte Listen gelöscht/lässt sich nicht öffnen
Hallo, ich habe ein Problem mit dem automatischen Ausfüllen von Monaten, Wochentagen, Zahlen etc. Meine Systemeinstellung für den PC war in Englisch eingestellt, dabei ging das automatische ausfüllen nur mit den englischen Begriffen. Nach Umstellung der Systemsprache auf Deutsch hat Excel gar keine benutzerdefinierten Listen mehr. Wenn mein auf Optionen -> Erweitert -> benutzerdefinierte Listen bearbeiten klickt, dann wird auch das Fenster nicht geöffnet. Wenn ich die Systemsprache wieder auf Englisch zurückstelle, dann funktioniert es wieder (nur in Englisch). Warum ist das so? Was kann ich machen, damit es wieder klappt?Jess2020Aug 07, 2026Copper Contributor675Views1like1CommentExcel auto complete text
I did all the below methodology to have Excel auto complete text for me and it doesn't, why not? Is there a block to that process? How does that work, Thanks. Turn automatic completion of cell entries on or off Microsoft Office Excel completes text entries that you start to type in a column of data — if the first few letters that you type match an existing entry in that column. If you want to stop automatic completion, you can turn this option off. Click File > Options. Click Advanced, and then under Editing options, select or clear the Enable AutoComplete for cell values check box to turn this option on or off.How_does_that_workAug 06, 2026Copper Contributor69KViews0likes8CommentsExcel repair strips all formulas from large .xlsm after March 2026 security update (KB5002849)
Hi everyone, I'm a master's student at Karolinska Institutet in Stockholm. My thesis is a health economic cost-effectiveness model built entirely in Excel — a gender-neutral static Markov cohort model with 34 worksheets. The file has become completely unusable after what I believe is the March 2026 security update, and I'm running out of options. The file: - .xlsm, ~46.5 MB compressed, ~370 MB uncompressed XML - 34 worksheets, four of which are 73–92 MB each (Markov trace sheets) - ~65,000 formulas, ~33,500 shared formulas - Heavy use of LET, LAMBDA, XLOOKUP, XMATCH, CHOOSECOLS, TAKE, MAP, SWITCH - 771 defined names including ~147 hidden _xlpm.* LET/LAMBDA variable placeholders - Stored on OneDrive via KI SharePoint, 34,000+ AutoSave revisions - Contains VBA (vbaProject.bin) The problem: Every time I open the file — on Excel for Mac or Excel Online — the repair engine triggers and strips ALL formulas from every sheet, replacing them with cached values. The file shrinks from ~46.5 MB to ~26 MB. Clicking "No" on the repair dialog just closes the file. There is no way to bypass the repair. What I've verified: - Extracted the .xlsm as a ZIP and confirmed all formulas (<f> tags) are fully intact in the raw XML - Libr€Office Calc can read the formulas but cannot execute them (Err:508 — no LET/LAMBDA support) - Removed 158 broken named ranges (#REF! and #NAME? entries) from workbook.xml and rebuilt the archive — repair engine still strips all formulas - The issue reproduces on every OneDrive version history copy (up until I largely used LET formulas in my sheets - but there is still 1,5months of changes lost) - The issue reproduces on both Excel for Mac and Excel Online Suspected cause: The March 10, 2026 security update (KB5002849) patched CVE-2026-26108, a heap overflow in Excel's file parsing during loading. The same patch was applied to Office Online Server (KB5002846). I believe the tightened parsing now rejects or flags my file's large XML structures as potentially malicious, triggering the repair engine to strip all formulas. This is consistent with: - The known _xlfn. namespace bug on Excel for Mac (reported by multiple users on Microsoft Q&A since late 2024) - The timing - the file was working before this update flawlessly up until March 16th - The fact that Excel Online is also affected (same server-side patch) My questions to the community: 1. Has anyone else experienced formula stripping on large workbooks after the March 2026 update? 2. Is there a way to bypass the repair engine on Mac, or roll back the specific security patch without downgrading all of Office? 3. Would opening this file on Windows Excel (pre-patch or current) preserve the formulas? If anyone with a Windows PC would be willing to try opening and re-saving this file, I would be incredibly grateful. 4. Is there now effectively a size/complexity ceiling for Excel workbooks that makes models like this unviable? If so - should I be migrating this to another environment (R, Python, etc.) going forward? This file represents six months of thesis work. The formulas are all there in the XML. I just need Excel to stop destroying them on open. Any help, pointers, or similar experiences would be hugely appreciated. Thank you, Florian BoschekdjfloboAug 05, 2026Copper Contributor684Views0likes6CommentsOffice Scripts - Working With Multiple Worksheets
I'm trying to write a script which writes data, via Power Automate, to multiple worksheets inside one workbook. I'm new to office scripts, so I'm not sure if I can do this in one script or if I have to do a separate script for each worksheet. Here is an example of the code: function main(workbook: ExcelScript.Workbook, Title: string, Type: string, Problem: string, Part: string, Date: string, Frequency: string, IDNumber: string, Comments: string, Originator: string) { let selectedSheet = workbook.getWorksheet("Issues"); //Populate All The Data selectedSheet.getRange("B6") .setValue(Title); selectedSheet.getRange("D6") .setValue(Type); selectedSheet.getRange("F6") .setValue(Problem); selectedSheet.getRange("B8") .setValue(Part); selectedSheet.getRange("D8") .setValue(Date); selectedSheet.getRange("H8") .setValue(Frequency); selectedSheet.getRange("K8") .setValue(IDNumber); selectedSheet.getRange("B9") .setValue(Comments); selectedSheet.getRange("F8") .setValue(Originator); } So that is the end of what I'm doing on the first worksheet, and it works perfectly, and now I want to do a similar thing on three more worksheets, in the same work book. Is there a way for me to add something to the code to start the process on the next worksheet? It won't let me use the "let" statement again to change the worksheet, which I thought might be how it worked, so I'm at a standstill now. Thank youSolvedSargentSynergyAug 05, 2026Tin Contributor5KViews0likes5CommentsMarket cap option in Stocks data type not working
Good morning, I am using Microsoft 365 Excel to track stock info like price, 52-wk high, 52-wk low, market cap and shares outstanding then using this data to introduce it in some formulas. But very recently the data for the Market Cap stop appearing and only showing #FIELD! instead. Does anybody know if the option was discontinued from Excel?RosalioBAug 05, 2026Copper Contributor5.4KViews0likes6CommentsExcel freezes when formatting cells
When I try to format a cell in Excel - bolding, underlining, switching font size - the program freezes and I need to re-start. Is a new issue from last 2 days having worked without problems previously. I've tried program repair, updates and re-installing Office and running in safe mode. No luck. Any suggestions for how I solve? Many thanks!SolvedTim_Hill2190Aug 04, 2026Copper Contributor130KViews2likes54Comments
Tags
- excel43,907 Topics
- Formulas and Functions25,406 Topics
- Macros and VBA6,572 Topics
- office 3656,344 Topics
- Excel on Mac2,746 Topics
- BI & Data Analysis2,492 Topics
- Excel for web2,021 Topics
- Formulas & Functions1,716 Topics
- Need Help1,703 Topics
- Charting1,703 Topics