excel-2016

Excel 2016 Workbook.BeforeClose event firing every other time bug

北城以北 提交于 2019-12-01 06:30:44
问题 8/25/16 Update: I updated Office 2016 (now on v 16.0.7167.2040) and it seems to have been fixed. I didn't change any add-ins or anything. Maybe Microsoft does look at these issues! Hopefully, anyone else with this issue can update their version and see this bug has been corrected. (I removed the dropbox link from the OP.) 4/9/16 Update: I updated Office (now on v 16.0.6729.1012) Instead of the .beforeclose event only firing once, now the event fires every other time. Here is a video showing

Tables interfere with VBA range variables depending on scope

…衆ロ難τιáo~ 提交于 2019-11-30 05:59:43
问题 An Excel file includes VBA-coded user-defined functions (UDFs) that are deployed in tables (VBA listobjects). Now, for reasons that escape me, if the UDF module contains Range variables that are declared outside the scope of any sub or function, I get a very dramatic warning when the file is opened: "Automatic error -- Catastrophic failure". "Catastrophic" seems like an exaggeration because after the warning is dismissed, the file seems to work correctly. But I would still like to understand

Need to make a macro in excel that finds blanks in a column, and then fills in the value from above the blank cell. Picture included to illustrate

一笑奈何 提交于 2019-11-29 17:37:44
So I have a column with blanks randomly throughout...I need a macro that would select only the blanks, and then in those blank cells paste in the value of the cell above it. The select part is obviously easy, but I keep getting errors about 'too many continuations' when trying to fill the formula down into the blanks. I included a picture, the first column is a 'before' and the second is how I want the column to look after the application of the macro. If the macro needs to create a second column or something that's fine too, as long as the end result looks like it does in the picture. Thanks!

Why doesn’t the form not POST in Excel 2016 for Mac?

谁都会走 提交于 2019-11-29 16:51:18
We are testing an add-in for Excel that has a form that is POSTed to https://httpbin.org/anything . The form will not POST in Excel 2016 version 15.39 (171010) for Mac (High Sierra ver 10.13.1). Here are the HTML form’s essentials: <script type="text/javascript"> //submit form $("#testForm").submit(); </script> </head> <body> <form method="POST" id="testForm" action="https://httpbin.org/anything" accept-charset="UTF-8" target="_blank"> <div> <input type='hidden' name='mergeDataFormat' value='csv'> </div> <div> <input type="hidden" name="mergeData" id="mergeData" value='Name,Street,"City, State

How to make Microsoft Web Browser object work in Excel 2016

一个人想着一个人 提交于 2019-11-29 11:02:52
When I try to insert it, I constantly get the "Cannot insert object" error. It seems to be a known issue with former Excel versions, but I couldn't find any support for 2016. Has anyone been able to make this work? Here are screenshots: This appears to be intentional behaviour from Excel 2013 onwards. From this article : This issue occurs because some scriptable controls are made obsolete in Office 2013 for security reasons. This is by design, and these errors are expected. There is a workaround posted in that article which involves editing the registry to make these controls work again. (The

How to reference and refresh a QueryTable in Excel 2016 in VBA

偶尔善良 提交于 2019-11-28 13:49:41
I'm trying to refresh a query on a cell change, however I can't figure out how to reference the query. My code: Sheets("Roster Query").QueryTables(0).Refresh Just errors out with: Run-time error '1004': Application-defined or object-defined error I have a sheet named "Roster Filter" that has query table I want to refresh. How can I get that QueryTable and refresh it? Edit: Also tried: For Each qt In Sheets("Roster Query").QueryTables qt.Refresh Next This does not error out, but the query is not refreshed. Query tables are a relic of older versions of Excel, before tables were a thing. Not sure

Need to make a macro in excel that finds blanks in a column, and then fills in the value from above the blank cell. Picture included to illustrate

…衆ロ難τιáo~ 提交于 2019-11-28 12:14:43
问题 So I have a column with blanks randomly throughout...I need a macro that would select only the blanks, and then in those blank cells paste in the value of the cell above it. The select part is obviously easy, but I keep getting errors about 'too many continuations' when trying to fill the formula down into the blanks. I included a picture, the first column is a 'before' and the second is how I want the column to look after the application of the macro. If the macro needs to create a second

Tables interfere with VBA range variables depending on scope

可紊 提交于 2019-11-28 12:11:37
An Excel file includes VBA-coded user-defined functions (UDFs) that are deployed in tables (VBA listobjects). Now, for reasons that escape me, if the UDF module contains Range variables that are declared outside the scope of any sub or function, I get a very dramatic warning when the file is opened: "Automatic error -- Catastrophic failure". "Catastrophic" seems like an exaggeration because after the warning is dismissed, the file seems to work correctly. But I would still like to understand what the issue is. I have managed to replicate the issue with an MVC example as follows. I'm running

Why doesn’t the form not POST in Excel 2016 for Mac?

烂漫一生 提交于 2019-11-28 10:31:03
问题 We are testing an add-in for Excel that has a form that is POSTed to https://httpbin.org/anything. The form will not POST in Excel 2016 version 15.39 (171010) for Mac (High Sierra ver 10.13.1). Here are the HTML form’s essentials: <script type="text/javascript"> //submit form $("#testForm").submit(); </script> </head> <body> <form method="POST" id="testForm" action="https://httpbin.org/anything" accept-charset="UTF-8" target="_blank"> <div> <input type='hidden' name='mergeDataFormat' value=

How to reference and refresh a QueryTable in Excel 2016 in VBA

心已入冬 提交于 2019-11-27 19:31:56
问题 I'm trying to refresh a query on a cell change, however I can't figure out how to reference the query. My code: Sheets("Roster Query").QueryTables(0).Refresh Just errors out with: Run-time error '1004': Application-defined or object-defined error I have a sheet named "Roster Filter" that has query table I want to refresh. How can I get that QueryTable and refresh it? Edit: Also tried: For Each qt In Sheets("Roster Query").QueryTables qt.Refresh Next This does not error out, but the query is