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

Excel 2010 Pivot Table VBA Not Refreshing Table

$
0
0

My company recently upgraded from Excel 2003 to 2010. I had VBA written to take source data and convert it into a number of Pivot Tables on a number of worksheets. It has been working fine for years. After upgrading to 2010 the VBA crashed. I tracked it down to the fact that when my code was making changes to the Pivot Tables (changing fields, filters, etc...) the pivot table on the worksheet had no data, but the fields were there. I can manually go to the pivot table and manually refresh and all the data comes in.

So I tried adding the VBA code to refresh the pivot table, but the pivot tables will not refresh with data.

I tried:

ActiveSheet.PivotTables("WO Pivot").RefreshTable

and

ActiveWorkbook.RefreshAll

And these did not work.

I also tried recording a macro for the manual steps to refresh and got:

 ActiveSheet.PivotTables("WO Pivot").PivotCache.Refresh

This does not work either.

The PivotTable name is correct, but I tried using the number as well, and the name works for other code manipulating the the pivot table.

e.g.:

With ActiveSheet.PivotTables("WOPivot").PivotFields("Task Title")

      .Orientation = xlRowField .Position = 2

      .Subtotals = Array(False, False, False, False, False, False, False, False, False, False, _False, False)

End

With Why isn't this working? Is there another way to refresh pivot table data in 2010?

Thanks. P.S. I've tried formating this so it is readable, but it comes out garbled. Hope this looks better.


Unable to open web query. Cannot download the information you requested.

$
0
0

I am attempting to import several financial statements into a stock valuation program I have created. Sometimes, the web queries work fine and other times they do not. For instance, if I reset my computer they will sometimeswork. It is very random, some days it will work and others it will not. I have had other people try using excel web queries, not just from my worksheet, and they have the same issue where they randomly stop working. I have looked into other forums but cannot figure out why these queries will not work. Please help me resolve this because it makes the excel program worthless without it. Thanks! 

Unable to read data in Excel 2010/2013 from encrypted Access 2010/2013 database

$
0
0

A customer has an Access database (.accdb), which was encrypted/given a database password in Access 2013. It should be possible to read that data from Excel 2010/2013, but when clicking on Data-->From Accessand the correct path is put in and the correct database password has been entered, Excel just keeps prompting for the database password. This happens with both Excel 2010 and 2013.

The database password supplied is correct as evidenced by opening the database in Access 2013 using the same database password.

A colleague in a separate company has found that a separate .accdb file he has recently encrypted also has the same problem as above, yet a .accdb file encrypted ages agois readable from Excel.

How do I get Excel 2010/2013 to read the data from the encrypted .accdb file, please?

PowerQuery/Power Pivot import from database error

$
0
0

Hi,

I am trying to import data into PowerQuery or PowerPivot and I get the following error when importing data 'From Database':

Could not load file or assembly 'System.EnterpriseServices.Wrapper.dll' or one of its dependencies. Invalid access to memory location. (Exception from HRESULT: 0x800703E6)

Any assistance would be greatly appreciated!

Warm Regards,

Stephen

Microsoft Forms and Microsoft Visual Basic while opening the Excel file

$
0
0

Hello,

I have issues with 2010 64 bit Office Pro Plus Excel. Whenever I open an Excel file (97-2003 worksheet) which has macros then I get below 2 errors in sequence.
Please note that all macro settings are enabled and below are my system configs.
Win 7 Ultimate 64 bit,
MS Office Pro Plus 2010 64 bit with SP2.
Googled all and tried but in vein and also note that I dont have any .exd files under ../forms to delete. Please help.

Please note that for others with same system config/office versions and same 97-2003 worksheet it works so issues is only in my system.

First Error

---------------------------
Microsoft Forms
---------------------------
Could not load an object because it is not available on this machine.


Second Error

---------------------------
Microsoft Visual Basic for Applications
---------------------------
Compile error in hidden module:  MainUtilities2.
This error commonly occurs when code is incompatible with the version, platform, or architecture of this application.  Click "Help" for information on how to correct this error.

Thanks.


"Rows to Repeat at top" Not Available in Excel 2010

$
0
0

Hello, All!

Here I am with another question... Maybe someday when I grow up, I'll be able toanswer a few questions! ;-{)

I am creating a PDF via Adobe Acrobat Professional 9 and Excel 2010 and want to have the title row appear on the top of each of the 140+ pages, but when I go to thePage Setup and select the Sheet Tab, the Rows to repeat at top is unavailable.

Excel was fully installed as part of Office Professional Plus 2010 and Acrobat was fully installed as part of Adobe Design CS4.

Thanks in advance for your help!

Excel 2010 changes relative link paths to absolute in files synced with Offline Files in Windows 7

$
0
0
Hello! I'm wondering if anyone else has seen this problem: I have a large number of Excel 2010 and 2003 files in a folder on my file server. This whole folder is also synced to my computer using Offline Files in Windows 7. I have a lot of references between cells in different Excel files, and all referenced workbooks are physically in the same folder. This all works nicely when I create these files at work - all file paths referenced in the cells are created as relative paths and the documents open correctly. This is, I understand, the expected and default behavior when Excel creates links. When I edit these files at home, nothing seems odd until I get back to work and sync these files back to the file server. At this point, I discovered that Excel 2010 has, when I saved the files while away from the corporate network, changed /all/ the cell references in any offline-edited Excel files to point at absolute paths, and that these absolute paths point to somewhere in my %APPDATA% structure. So whenever I come to work and I try to open an Excel file that I have recently worked with offline, I get a bunch of error messages about referenced files that are missing, although clearly they exist in the same folder as the file I've opened, and I must edit all the file references again, whereupon they are again created correctly as relative paths (since all files exist in the same folder), which are promptly mangled into absolute C:\....\Offline Files\.....\..... paths whenever I save them at home (and since that works too, I don't notice it again until I come back to work and the offline files are synced back to the real network location). This seems to be a case of Windows 7's Offline Files not being able to fool Excel 2010 into believing it is working on a file server - apparently Excel 2010 can see through the fakery and decides on it's own to "fix" the problem (which obviously isn't a problem since the paths are relative to begin with) by saving the paths as absolute paths instead. Yes, really clever, Excel. The exepected behavior according to MSKB is that links are created as relative paths, so why does it change to absolute whenever Offline Files are involved? I know Offline Files only syncs, it doesn't actually change the files, so I can conclude that Excel is the program at fault here. Is there a fix for this, or a known workaround? Because frankly, this bug makes it impossible for me to work in any advanced manner with linked Excel files. The sad thing is that this worked perfectly fine with Office 2003 and Windows XP. Is there a patch for this problem that I might have missed (I am running the latest Service Pack and I get Office updates from Microsoft Update). If not, is there a workaround I can use to prevent Excel from corrupting my links when I edit the files offline?

Functions in a Column

$
0
0
If I am working on a function for a column, eg =IF(ISBLANK(D11),0,1) , but I want to apply it so that each cell auto updates to the same row as the column (the formula is in column E and I want E11 to look at D11, E12 to look at D12, etc) how do I do that without having to copy and paste to each cell and changing the numbers?  Sorry for the noob question, but I'm stumped

"Rows to repeat at top", in Page Setup/Sheet disabled in Excel 2010

$
0
0

I have read all of the postings on this question. I am having the same problem! However I do not see any solution. I see a lot of "I think's", or "try this'", but no clear cut-solution. Let me restate;

I am running Excel 2010 in Office Professional:

I want to print a long spread sheet and I would like the title row repeated on the top of each page. I specify the print area range. The first row is frozen, so that when I scroll through my work on screen, I can differentiate the column information by having the first row frozen. I want this to happen when I print this long document.

I go to print and go to Page Setup. I select the "Sheet" tab. The Print address bar area is disabled (grayed), but my print range is there. Under "Print" Titles", both selections are disabled (grayed); "Rows to Repeat at Top" and Columns to Repeat at Left" are unavailable for selection. The address selection button on the right, of each of these three address range bars are also disabled (grayed).

This worksheet is on my hard drive. It is the only worksheet in the file. When I click on the worksheet tab, it does not say "Ungroup Sheets" which means that sheets have never been grouped.

I have been using Excel since Excel 95. I have done this many times in past versions, and it is a relatively simple procedure. Does any know why I can not access this feature in Excel 2010?

X-Axis in Excel 2013 Scatter Plots

$
0
0

I wasn't very specific in detail about this with my last question, so let me try again.

I often have to make XY scatter plots with thousands of data points from txt files. When I highlight all the data and insert it into a scatter plot, the x-axis becomes cell index rather than the data in the left-most column.

I realize this can be changed (although I'd have to do it EVERY time) by going to "select data" and re-highlighting the left most column. However, once this is done it doesn't display the same options when i try to reformat the x-axis. One of the most important features that isn't present anymore is the ability to shorten the range so I can narrow the plot down a bit (Shortening the axis range from 0-200 to say 50-100).

This wasn't always the case with Excel 2013. It just started randomly about a week ago. Is there going to be an update to fix this error soon or is there some sort of alternative in the mean time?

Microsoft Excel 2013 add-in not working after update

$
0
0

I have originally posted this question at answers.microsoft.com and have been re-directed to post here. (http://answers.microsoft.com/en-us/office/forum/office_2013_release-excel/microsoft-excel-2013-add-in-not-working-after/298aff03-c90a-4a2a-b67b-07b6f3c7648c)

---------------------------------------------------------

We are an organization with over 200 users and are currently using Microsoft Office 2013 (Click-to-run install via Office 365 portal), we have noticed that in Excel when we apply the monthly Office update, the add-in (e.g. Analysis Toolpak) would stop working with the following error message displayed.

Image

I tried updating from 15.0.4631.1004 to 15.0.4641.1003, 15.0.4641.1003 to 15.0.4649.1004, they all gave the same results.

I have checked the captioned file path and it is indeed missing, I think the update mechanism messed up the add-in somehow, a full re-install would fix it as quick or online repair is not doing the trick.  This is not the only add-in it is affecting as there are some 3rd party add-ins are affected as well.

Please advise how we can fix this without needing to re-install Microsoft Office.  Thank you!

Excel power view error; E_FAIL

$
0
0

As mentioned on a youtube video tutorial (watch?v=gz2N7S6pgks), I want to use excel 2013 power view but got this error;

Error HRESULT E_FAIL has been returned from a call to a COM component.

The E_FAIL code means the error is unknown!

Any help? Thanks.


Excel share workbook in a shared folder

$
0
0

Hi,

I just need your kind help for me to begin the right thing.

I have a workbook with 10 spreadsheets which is save in a Share Folder

This what I need to do

1. I need to share this to workbook for other users around 10, It's possible in excel?

2. I need this 20 user can entry/edit data  only from the cell L1:P20000 only at the same time at anytime?

3. this 10 users can not do entry, edit, change data from the cell A1:K20000 for it's exclusive for me, can I do that?

4. I want also to restrict users from inserting rows or cells, users are only exclusive data entry or edit entry to a certain record?

5. Except me as one of user can freely do all functions inserting and deleting, entry or edit?

Can you please give me some thoughts to make it happen, please.

do I need a VBA code to do this thanks in advance for any help.

thanks

M032313

Excel 2010 bug

$
0
0

I have the following problem in Excel:

Column 1 and 2 are values, Column 3 is 15,1 with every cell down +0,1, Column 4 is:
=VERT.LOOKUP(D:D;A:B;2)

15,11515,115
15,21615,216
15,31715,316
15,41815,417
15,51915,518
15,62015,619
15,72115,720
15,82215,821

In 15,2 and 15,3 it gives 16 for both lookups where it should give 17.

Ivo

Very large cubeset (large number of elements)

$
0
0

I've looked and not found any relevant information- is there a limit on the number of elements in a cubeset being called from Excel?

I have a list of over 18,000 items and need to run an analysis for just that group of items, and I decided to try to create a cubeset and use cubeformulas to pull the results. Each item is a cubemember is a seperate cell (G4:G18285).

When I try to use a smaller cubset range, I get results as expected:

H1=CUBESET("BIRC",INDIRECT("G4:G1330"))

I1=CUBEVALUE("BIRC", H1, H2, H3)  'H2 and H3 are the measure and a filter) = 595,251

but when I expand the source range just a little (and still nowhere near my 18K cells):

H1=CUBESET("BIRC",INDIRECT("G4:G1335"))

My H1 calculates (seemingly without errors), but I1 turns into #N/A

If I expand just a little more,

H1=CUBESET("BIRC",INDIRECT("G4:G1340"))

Then H1 and I1 are both #N/A

I also tried creating smaller cubesets and then merging them in a new cubeset (just to see what would happen) but I can't get a working syntax, or maybe it isn't possible:

H1=CUBESET("BIRC",INDIRECT("G4:G1300"))

J1=CUBESET("BIRC",INDIRECT("G1301:G1400"))

K1=CUBESET("BIRC",({H1,J1})) = "the formula you typed contains an error"

K1=CUBESET("BIRC",(H1,J1)) = #N/A

Question 1: What are the functional limits of CUBESET source ranges/cells?

Question 2: What is the best approach to build a large cubeset like this in Excel, to drive an analysis?

Thanks!!


Excel 2010 Bug

$
0
0

Using Excel 2010 on machine with 8 GB of memory.

Unusual problem in large spreadsheet today.   The large xlsx was linked to a small xls spreadsheet to look up some data (used the vlookup function).  In my formula there were numerous references to the current row, including an alternate lookup based on sex (if sex="M", vlookup(), if sex="F", vlookup(), 999)

When I copied the formula down I noticed some #REF errors way down the spreadsheet, and noticed that they began after row 65536.  I redid the copy with no improvement, deleted the offending rows and closed the large spreadsheet and reopened and redid the copy still with no improvement.  This is the part that was especially strange.  Some of the references to that row in the formula were fine (65537) while one of them produced #REF.  

Knowing that this looked like some problem related to old versions of Excel, I closed the small xls file, resaved as an xlsx, and then relinked for my search.  Now when I copy down the formula there is not problem!!!

Everything went jumbo - how do I get UI back?

$
0
0
  • I was doing a pivot table - things crashed - now the cells are huge - even on new worksheet, and I can't adjust the size of the header row and column, get the column and formula bar sizes back to normal.



Save As Not Working Properly in Excel 2013

$
0
0

This is a very strange issue that my customer is having.

Brand new PC (64-bit Dell), came with OEM version of Office 2013 Pro.

They open documents supplied by 3rd party.  These documents have no extension in file name, but they are basically just text files.  They were created by other application, exporting a report.  So if we open the file with Notepad, it looks like a simple report text file with headers, columns, data, etc.

The requirement is to save these files with a password and pass them on to the end user.  They have chosen Excel to do this with, since the end user may need to massage the data in the report.

Here is the issue:  We open the file, Excel suggests columns and we accept all defaults.  When we choose Save As, then choose Excel Workbook (*.xlsx), the file saves as a PDF document.  It is still called filename.xlsx, but it has an Adobe Acrobat icon next to the file name in Explorer.  If we double click on it, we get an adobe message saying invalid file format.  So even with an xlsx extension, it still seems to be an acrobat document.

If when we Save As, we select Excel 97-2003 document (*.xls), everything works fine.  This is only a problem when using current excel format.

Any suggestions?  Thanks...


Ron Mittelman

Excel 2013 Hangs When Sharing Document as Attachment

$
0
0

When i have any Excel 2013 document open and click on File, Share, Email, Send as Attachment. A blank email opens with the Document attached, if i save the email as a draft Excel will hang/freeze even if when i send off the draft. <o:p></o:p>

I am aware of the hotifx https://support.microsoft.com/kb/2817349 this has been installed and doesnt make any difference. I have tired repairing Microsoft Office and rebooting but doesnt make a difference. Microsft Office 2013 pro is running on Windows 2008 r2 terminal server. 

Event Log Created:

The program EXCEL.EXE version 15.0.4420.1017 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel.
 Process ID: 23c0
 Start Time: 01cfeca45978e7ca
 Termination Time: 0
 Application Path: C:\Program Files\Microsoft Office\Office15\EXCEL.EXE
 Report Id: b876f500-5897-11e4-b87d-005056943393

Has anyone had this issue or know if there is a fix?



Locking VBA project from viewing causes automation error : the object invoked has disconnected from its clients

$
0
0

My environment is XP running office 2007. I am developing an excel application using VBA forms. everything works fine, no errors, until I protect the VBA project. When I protect it, I close and save the workbook and then re-open it. Many times it works the first time I open it and fails on the second and other times it fails on the first. I have done some research on it and found many posts making reference to using unqualified references to workbooks, sheets etc. in the code will produce the automation error. When I get the error I am loading my input form, populating the dropdown boxes and then setting values to the controls. When the error happens the dialog box shows and it doesn't give me the option to debug the code because the VBA project is protected. When it's not protected I don't get the errors so it has proved difficult to debug. The workbook has an autoOpen module that runs when the workbook starts. In this module I setup the excel environment. I set application.displayfullscreen = true, formula bars, displaystatusbar etc. so that the only thing the user sees is the input form. So the order of events is AutoOpen which sets the environment and then it shows the input form. In the input form I set some variables, populate a number of combo boxes and then I set the values of the controls. Now because the VBA project is protected I added message boxes to the error routines to try and catch the error to determine which statement was causing the error. I used MX-tools to set the line numbers and used ERL to see what line was causing the error. So after setting this up, I ran it the first time and did not encounter the error. I opened it a second time and the error routine fired and the message box showed me that the routine in the AutoOpen module with a line number was where the error was. So I went to the AutoOpen routine and commented out the line indicated on the messageBox. I ran it again and again the error routine fired and gave me another line number for a different statement. I commented out that line and did it a third time and it pointed me to an endif statement. It was clear that the error was not in the autopen routine. I then commented out the routine in the input form that sets the controls. This seamed to work. I didn’t get the error. But I have a button on the form that manually populates the controls and I pressed it and got the “Excel has encountered an error and needs to close” error. It is clear to me that the issue is in the routine that populates the controls in the input form but only when the workbook is locked. If I unlock the workbook and run the tests again. everything runs. The reason that I’m concerned is because this is a client deliverable and I can’t send out the file unless it is password protected. Does anyone have any ideas on how to fix this? I have been trying to fix this for the last 2 days and I can’t get past it. Any help or suggestions would be greatly appreciated.

Viewing all 11829 articles
Browse latest View live


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