Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all 11829 articles
Browse latest View live

Running Excel 2016 from Access 2013

$
0
0

Hello:

The summary of this question is "Can I run Access 2013 that references Excel 2016 when they are part of the same application?"

I recommended to my client that both Access and Excel should be at the same version level.  He doesn't want to spend the money to upgrade Access to 2016.

Here are the details:

I developed an application in Access 2013 that interfaces with Excel 2013.  It formats an Excel worksheet from within Access using code to link to Excel such as the following:

' **************************************************************
' Open the Excel Beer Movement Ticket Template from Within Access
' **************************************************************
Set xlApp = New Excel.Application
Set xlWB = xlApp.Workbooks.Open("C:\BeerMovementTemplate\BeerMovementTicketTemplateV8.xlsx")
Set xlSh = xlWB.Sheets("BeerMovementTicket")

My client upgraded Excel to 2016 but kept Access at the 2013 level.  When I compiled the program in Office 2013 (where both Access and Excel were 2013) , I got an error message that it could not locate the reference to this library:  Can't Locate Microsoft Excel 16.0 Object Library.  That's because Excel 2013 uses Microsoft Excel 15.0 Object Library and my client was using a newer version of Excel with the older version of Access.

Please advise:

Thanks,


Rich Locus, Logicwurks, LLC

http://www.logicwurks.com



VBA-Excel Cell Default Value

$
0
0

Using VBA, I am running an embedded application within Excel to perform multivariable, linear regression. The name of this application is "ATPVBAEN.XLAM!Regress". This application can also be accessed by Data | Data Analysis | Regression from the Excel ribbon.

This application writes detailed regression statistics to a range, specified by the user. Before writing, the application tests the range and issues a message box asking for permission to overwrite existing data. Apparently, the application conducts some test, unknown to the user, to determine whether data already exists the range. I want to get rid of this message box.

Here is what I observe.

Excel:

If I select the range, delete the contents using the Del key on the keyboard and then run the VBA macro, no message box is issued. The result is the same if I delete the rows.

VBA:

If I select the range and execute any of the following commands:

  • Selection.Clear
  • Selection.ClearContents
  • Selection.Value = DefaultValue

The application issues the message box.

Question:

What command can I execute in VBA that has the same outcome as the Del key on the keyboard in Excel? From VBA I want to put the range in the same state as I do from Excel using the Del key on the keyboard.

Observation:

Within Excel, if I use View | Macros | Record Macro, the Selection.ClearContents command is recorded.

Thanks ...


Wayne Baxter

Excel CPU usage capped at 30%

$
0
0

After removed unworkable WSUS settings and applied all windows update from internet.

When working with a specific .xls file for financial reporting programmed with many formula, worksheets, macro buttons for switching between worksheets and cells cleanup in Office 2013. The said file size is 50MB. Whole system will freeze such as performing copy & paste cells between current months and previous version of .xls report or even just opening 2 files. Seems Excel reaches a bottleneck at about 30% CPU usage. It has to wait CPU usage drops or end Excel process.

Power Plan is set to High Performance with maximum CPU usage of 100% and it is using all cores of CPU in advanced options in Excel.

I have also tried reinstall the Office from 32-bit to 64-bit version but with no luck. The problem still persists.

I am afraid it will create new problems converting the file to .xlsx.

Any other areas I could check?

Thank you.

COM exception "element not found" 80070490

$
0
0

Hi,

We have a WPF application running in your offices. It has a module that interacts with Excel to read\write data. 

All the PC's have Office 2019 installed locally on them because we have add-ins.

On all PC's the module is working fine, but on one of them it does not, with the following exception, when I try to load Excel uisng interop:

System.Runtime.InteropServices.COMException (0x80070490) element not found.  CLSID {00024500-0000-0000-C000-000000000046} 

In the event viewer I did not find something that correlates to this action throwing the exception.

I have searched for a way to resolve this but mainly foundsuggestions to reinstall Office. I have uninstalled Office with the "Microsoft recovery tool" and installed Office again' but the problem still occures.

Is there anything else I can do to resolve this issue?

My next step is formatting and reinstalling WIndows 10 so before I do that, I wanted to know if there is something less aggressive to try. 

Excel Cell format

$
0
0

I have a cell here with a name of an item and how many of them were used. I would like to be able to add the numbers in these cells together to get a grand total of each item and also have them separated by type. Is this possible?

Example:

Wine: 2018 Sauv Blanc, Cases: 2
Wine: 2018 LIVID, Cases: 1
Wine: 2018 Chard (Tier 1), Cases: 3


Wine: 2018 Sauv Blanc, Cases: 2

What i want to have below this:

2018 Sauv Blanc Cases          4

2018 LIVID Cases                  1

2018 Chard Cases                 3      <--- these all being in different cells

Request assistance with the solution maybe formula.

$
0
0

Hi,

I would like to request assistance with populate the information from sheet to other sheet. I just attached the photo of sample spreadsheet.

There are data from Chicago, Boston, and Seattle sheet tabs. I would like Dog sheet tab to pull the information from Chicago

Dog Sheet:

Dog sheet tab should only get the information about the dog from Chicago, Boston, Seattle. The Installation column should get information from Chicago, Boston, and Seattle sheet tab's Location column. The primary should focus get the information is Animal column.

Installation = Location will show the city name and the city's neighbors. I would like to request the column "Region" from Dog and Cat to show only the City. (eg. If the City/Neighbor in City show as "Schiller Park" then "City" on Column A should show up as Chicago. If City/Neighbors show as Chicago then the City will be Chicago.

Please let me know if you have any questions.

Matthew


Power Query loses connection, stops refreshing and data disappear from the data model

$
0
0

Hello,

I have been having repetitive issues with the Excel Power  Query and data model (Professional Plus 2016).

I have a model with 20 queries from a local folder, from 24 to 320k rows each. Sometimes it works well, uploading all the information, but several times a day it stops responding to "refresh all" and all of the data disappears from the model. When pressed "refresh all" nothing just happens.

The problem can be urgently solved by right-clicking each query and selecting load - to data model (again). However, this takes time and resets and removes all the connections between tables in the data model.

solutions tried

- reset data load options to default

- remove larger queries

- cleared query cache

- re-installed the office

Nothing helped. 

Could you please help me out with this situation?

Thanks,

Regards,

Denis



 


"PowerPivot is unable to load the Data Model"

$
0
0

I have an Excel workbook with sheets with PivotTables using PowerPivot to fill them. The source are SQL Server views and a stored procedure. Somehow I receive now an error message:

- An issue with the Data Model is preventing Microsoft Excel from opening this workbook. Try restarting Microsoft Excel.

followed by

- PowerPivot is unable to load the Data Model

I have Windows 10 and Office 2016. The first message I can't find on the internet. On the second one I found several tips (repair Office, reboot, etc), but nothing helps. Also on a colleagues computer this problem occurs (so it is in the workbook itself). An old version from 2 weeks ago, still works.

Any idea? Any suggestion?

Thanks in advance,

Regards Gerben


"Get External Data Group" greyed out

$
0
0

I'm having the same problem as someone else whose  Excel 2010 the "Get External Data" is grayed out was also greyed out.  There was a suggestion to clear the old external data.  How do you clear old external data?

Movement of the (eye-level) work area when filter set

$
0
0

The settings on my Excel is no longer moving the (eye-level) viewable work area from bottom to row of filter whenever I set the filter command. For example, on Office 2010—specifically Excel 2010—suppose you are on a sheet with data filled from column A thru F and more importantly vertically populated ranging from row 1 thru 6580.

 

Suppose you do Control + Arrow down and your cursor is on the last row of the data. Then suppose you hit filter to put the filter on row 1. When you do that, the full screen automatically goes to row 1, whereas previously on your (eye level view) screen you was on around row 6580 as stated earlier.

Well this convenient and super-fast movement is where one is able to zip thru a lot of worksheets seems disabled or missing on my computer and I don’t even know what it's formally called.

Unfortunately—this convenient movement of the screen or work area seems unavailable on my Excel 2016 or Excel 365 at my work computer. What’s this function called so I may enable it? Because right now when I activate the filter, I have to manually go up to row 1. Please advise.


Thank you.

Oracle smartview addin for excel, specifically Essbase function, when using HvalueGet or Adhoc very slow citrix Xendesktop to Refresh?

$
0
0

Oracle smartview essbase in excel stops responding when clicking on refresh for ages?

So we originally fixed this for W10 xendesktop non persistent last year by removing a conflicting excel addin for the WHOLE of finance, but now it's returned ever since we upgraded to a newer build, tried now both semi-annual and monthly releases, could something else be causing this issue? anyone else have this issue, raised a ticket with Oracle in the mean time.

We’ve switched from Microsoft_Office365ProPlus_16.0.12130.20344_x86  to Microsoft_Office365ProPlus_16.0.11929.20562_x86 semi-annual windows 10 xendesktop and now users are reporting slowness in Excel Oracle Smartview add-on, this was previously fixed when we removed a conflicting templates addon, any ideas why this version of Office has caused the slowness to resurface, it seems to be specifically when they perform Essbase functions from the addon in Excel.

Note that I installed excel 2010 and excel 2013 and it's still slow, if i bring up resource monitor there is no cpu usage, ram, Iops, and the established conenction to the server I can there are not bytes being transmitted and latency is very low. Our onsite Oracle database guru said everything is fine tuned and diagnostics have been done so the EPM is load balanced and operating fine.

I even tried on a superspec vdi 4vcpu 16 gig of ram it's equally as slow, all of finance have the exact same problems, I just can't figure out why it's gone wrong after we managed to fix it after 1 year by removing an embedded excel actionpane add-in made by a 3rd party, we've confirmed it's not been reintroduced.

Has anyone had this problem on Windows 10 Xendesktop vdi's, our finance users still have access to legacy windows 7 and it's fine there no lag or latency from excel 2010 citrix xenapp 6.5

A refresh in hget takes abotu 8 to 17 seconds, a full adhoc refresh of a large report can take 7 to 8 minutes from what i can tell and it's consistetly the same even on weekends when no one is working.

Are there any fancy tools I can use or logs I can check? I can do a capture of fiddler, wireshark, procmon don't see anything obvious.

2.05b 15/01/2020

==============================================

Added                  -              January 2020 OS Updates

Replaced             -              Microsoft_OneDrive_19.86.502.10_x86 with Microsoft_OneDrive_19.174.902.13_x86

Replaced             -              Microsoft_Office365ProPlus_16.0.12130.20344_x86 with Microsoft_Office365ProPlus_16.0.11929.20562_x86 (going back to semi-annual channel, new version 1908)

Replaced             -              Microsoft_Teams_1.2.00.27559_x64 with Microsoft_Teams_1.2.00.32462_x64

Replaced             -              Adobe_AcrobatReaderDC_19.012.20034_x86 with Adobe_AcrobatReaderDC_19.021.20058_x86

Replaced             -              Condeco_OutlookAdd-in_6.6.004_x86 with Condeco_OutlookAdd-in_6.6.502_x86_2 

Replaced             -              Lakeside_SystemsManagementAgent_8.03.0689_x86 with Lakeside_SystemsManagementAgent_9.00.0302_x86 

Replaced             -              CrowdStrike_WindowsSensor_5.11.9204.0_x64_2 with CrowdStrike_WindowsSensor_5.23.10504.0_x64 ( amended install command line)

Modified             -              executing Citrix_OptimizationEngine_2.1_1.0 v1.8 (add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Wow6432Node\Microsoft\Office\16.0\Access Connectivity Engine\Engines WorkingSetSleep REG_DWORD = 1" fixed access DB issue)

Moved                 -              Office 365 and its dependent components under Citrix VDA install step in the MDT Task Sequence (to fix FSLogix, Ivanti EM, Citrix VDA and Teams install issues which began with December O365 Monthly Channel release)

Autosave turned off - This workbook contains features that prevent it from using Autosave.

$
0
0

Hi, Please I need some help here. 

I have a ton of excel files that come up with this error and I am unable to enable the autosave feature on these work books.

Excel files are in all saved in .xlsx

I have tried deleting all the sheets in the workbook but still have this error. 

Can someone please help me understand why this is happening and how to fix it. Many thanks

Add-In Power Pivot in 2016 Office Non-Subscription Home and Student Version

$
0
0
Not able to add-in Power Pivot Add-in in 2016 office Home and Student Version

Excel file save error: Someone else is working in right now. Please try again later.

$
0
0

When trying to save a modified Excel file, which has been opened from a network share, our users are receiving the following message:

Someone else is working in "\\domain.com\users\username\Document.xls" right now. Please try again later.

The clients that have been affected are Windows 7 clients, and the DFS share is being served from a Windows 2012 server. I have already confirmed that DFS replication has not been enabled, so it isn't trying to lock files for replication. I have also disabled any real-time scanning that is occurring on the client to make sure that the AV software wasn't locking the files. I did notice when viewing the list of Open Files from the server's Computer Management console that when a users experiences this issue the file appears to be opened 4 times. Three times it shows that it was opened in Read mode and the 4th instance shows an Open Mode of Write. Typically, a file which is working correctly should just show one instance with the Open Mode of Read+Write. None of these open instances are temporary files preceded with a ~.

Any thoughts?


ExcelLR.cab

$
0
0

In my MS Office 2007 setup everytime ExcelLR.cab file is getting deleted automatically.

I've triedit 9 times but no profit.

Please solve this


Improve Save Selected Sheets Code

$
0
0

I have a macro that selects certain sheets in my workbook and saves them out as a new file. It works just fine, but I'm looking for some advice to make it cleaner and more efficient if possible. Would appreciate your suggestions for improvement.

Sub DeptWeekly()


Application.Cursor = xlWait
Application.ScreenUpdating = False
Application.DisplayAlerts = False

' Select Sheets
    Sheets(Array("Slots - C", "Tbl Games - C", "Sportsbook - C")).Select
      Sheets(Array("Slots - C", "Tbl Games - C", "Sportsbook - C")).Copy
'Save Department File
    ActiveWorkbook.SaveAs Filename:= _"\\rac.local\root\Shared\Financial Analysis\Planning & Analysis\Reforecast\Re open Corona\FTE Reforecast\Send Weekly\GAMES.xlsm" _
        , FileFormat:=xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
ActiveWorkbook.Close

    Sheets(Array("Cage", "Countroom", "Credit", "CasAcc", "Hot Acct")).Select
    Sheets(Array("Cage", "Countroom", "Credit", "CasAcc", "Hot Acct")).Copy

    ActiveWorkbook.SaveAs Filename:= _
        "\\rac.local\root\Shared\Financial Analysis\Planning & Analysis\Reforecast\Re open Corona\FTE Reforecast\Send Weekly\CASACC.xlsm" _
        , FileFormat:=xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
ActiveWorkbook.Close

Sheets("CONTROL").Select

Application.DisplayAlerts = True
Application.ScreenUpdating = True
Application.Cursor = xlDefault
MsgBox "Export has completed!"

End Sub
Also, I noticed that even though I've turned screen updating off, when it saves the new files, it still shows the "Saving" message box on the screen. Is there a way to suppress that?

Excel cannot open file "xyz.xlsm"...

$
0
0

I have and old .xls file with macros that opens and functions just fine in Excel 2010.  After saving the file in the newer format .xlsm I get the error "Excel cannot open the file "xyz.xlsm" because the file format or file extension is not valid".

What gives?  The original file works fine.  Is there some trick to saving a file in the newer format?

Thanks.


Peter Ekstrom



Insert copied cells with formula VBA

$
0
0

I have following sample cells. Colum B has formula

    A          B
Number  Sum
3              3 (
=SUM($A$2:A2))
2              5
(=SUM($A$2:A3))
5            10
(=SUM($A$2:A4))

I need to insert 2 cells above A2 and B2 to get the result below.    A          B
Number  Sum
7              7 (=SUM($A$2:A2))
3            10 (=SUM($A$2:A3))
2            12 (=SUM($A$2:A4))
5            17 (=SUM($A$2:A5))

I tried the code below but get wrong result. Is there a way to do it? thanks.

Range("A2:O2").Copy
Range("A2:O2").Insert xlShiftDown

Macros in Excel 2013 and Excel 2016 can not be set in spite of the trusted locations are enabled for http://sharepoint.domain.local in User GPOs

$
0
0

Hi!

I can set Macro Settings in Excel 2013 and Excel 2016 in User GPO from path H:\, Z:\ (trusted locations),
but when opening an Excel document from http (also trusted locations) , the Macro Settings can not be set.
I enabled Allow Trusted Locations in the User GPO, but it works for path H:\, Z:\,...
Not if I define as Trusted location http (allow sub folders). My setting in User GPO are:  

Block macros from running in Office files from the Internet      Disabled

Trust access to Visual Basic Project                                        Disabled

Turn off trusted documents                                                      Disabled

Turn off Trusted Documents on the network                            Disabled

VBA Macro Notification Settings (Disable all without notification)      Enabled

Allow Trusted Locations on the network                                   Enabled

Disable all trusted locations                                                      Disabled

Trusted Location #1                                                                  Enabled

Trusted Location #2                                                                  Enabled

……

I am missing something?

Thanks.

Bobo

Calculating Variances (Value and Percent) in Pivot (not using power pivot) - is it possible?

$
0
0

I have financial data that I need to show variances against a number of dimensions. I need this in pivot so that I can use filters to create automatic views for different audiences (e.g. Divisions and Heads of Areas). 

In the pivot there are roll ups, so example income as a level with sub level of a number of income types (e.g. recurring, project, etc). 

I have actual data for "Month Actual", "Original Budget for the Month", "REvised Forecast for the Month". I then need calculated columns (to be in the same pivot table), that calculates values for: Actual - Budget, Actual - Forecast and then those value as a % change (so (Actual - Budget)/Budget and (Actual - Forecast)/Forecast. 

I am struggling to get this to work on each level (so income and the lower levels) as well as to get the % to calculate properly. 
Please advise if these is a solution for this in pivot or if only achievable in power pivot, and if so, how? 
Viewing all 11829 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>