Excel 2013 :: Worksheet Freeze With Application?

May 28, 2014

I encountered a strange anomaly where a worksheet "freezes" when Application.DisplayFormulaBar = False. I can only replicate this in Excel 2013. Excel 2010, for example, works perfectly well, and as expected.

[Code].....

To replicate the anomaly (Excel 2013 only):

1. In a new workbook, insert an ActiveX command button on "Sheet1", no code required.

2. Run the following code

[Code] .....

3. Click on the command button.

4. Now click on any cell and try to enter a value.

Is your screen "frozen"? If so, go to another sheet, return to Sheet1 and try again. Does it work?

Here's an alternative code for MyTest() that causes no problems. Can spot the difference? Is there a reasonable explanation?

[Code] ....

Even more curious, call the following MyTest3 on Workbook_Open() and the workbook behaves. Run MyTest3 again and the screen starts freezing(!)

[Code] .....

View 3 Replies


ADVERTISEMENT

Excel 2013 :: Macro That Can Reference Worksheet It Has Created

Jul 4, 2014

I am completely new to Macro's and VB and the macro below has been generated using the "Record Macro" function in Excel 2013 with a couple of very minor modifications based on some research I have done (hyperlink & input box). My ultimate goal is to make a copy of my "TEMPLATE", which is hidden and the copy could have a variety of names, then create an entry in my "SUMMARY" table that references cells on the newly created sheet. The new entry on the SUMMARY page should be entered in the next available row ... at the moment I need to make sure I have my cursor in the right place before I run the macro. I also want the first cell in the new "SUMMARY" row to create a hyperlink to the newly created worksheet.

The macro does what I need it to do, as long as I name the new sheet "Test", what I would like is for the Macro to recognise the name of the new worksheet and create links to that name. The rows and columns in each new sheet will remain the same, hence the R##C## part will always work.

The "SUMMARY" and "TEMPLATE" worksheet names will not (ever) change.

View 4 Replies View Related

Excel 2013 :: Formatting Of Entire Worksheet Changes Unexpectedly

Jan 20, 2014

In Excel 2013 x64 (EN; CZ locale) I have this funny bug. I work on a large vba project and sometimes when I open it, every cell in every workbook that had default formatting now has this numberformat (shown as "Accounting")

"_-* #,##0.00 [$Kč-405]_-;-* #,##0.00 [$Kč-405]_-;_-* ""-""?? [$Kč-405]_-;_-@_-"

its seems that this formatting is assigned to styles --> Normal and it just messes up everything (pivots, slicers...) and cannot(!) be undone.

I have made some routines to check for this error on workbook.open and workbook.close and I also have file versioning. I check for the error regularly on every worksheet change, but it never comes up, nor does it whenever I close the workbook, so Im having hard time detecting when it occurs.

Sometimes when I try to open the workbook its just all messed up. When I go trough the versions, couple of them back still has the error which means it was already saved with it.

All I could figure out so far is that it sometimes happens when I try to copy some cell and paste it elsewhere (but later it works fine)

I'm 99.9% sure that my code is not causing it by accident or purpose. Now I just found the problem on different workbook that might have been opened at the same time. If you're interested, have a look here [URL] ......

View 2 Replies View Related

Excel 2013 :: Can't Unprotect Worksheet Created With VBScript

Aug 2, 2014

I've written a little VBScript that generates several hundred Excel 2013 worksheets. In order to protect the users from themselves I protected certain cells. Everything works as expected, except when I discovered that the password I used to protect the worksheet doesn't work to unprotect it. If it matters, I'm not trying to unprotect programmatically, just opening Excel and going that route.

Here's a snippet of my code:

objWS.protect Password="abc123"

View 2 Replies View Related

Excel 2013 :: Populate First Worksheet From Data Stored In Several Other Worksheets?

Feb 19, 2014

I have made a Rota of sorts using Excel 2013 Desktop Edition for my charities volunteers (and stored it as a shared file via office 365 server that they can download and edit) and this rota is populated by our volunteers manually. Each day our controller needs to check the file to see who is on duty at that time.

How the Rota is populated.(the bit i managed to do myself)

The volunteer (Person A in this example) would open the excel file and go to the month they wish to choose a shift for (ref worksheet: FEB in this example). They would then pick a shift that suits them and click on the cell (ref: F32) that shows a vehicle available, then from the drop down list they select their name and then save and close the sheet.

Rather than our volunteer controller going through the sheet for the current month (ref worksheet: Sheets JAN to DEC) I would like them to use the first sheet in the workbook (ref worksheet: DC Info Page) to get an instant view of which volunteer is currently on shift.

My current problem

I don’t know how to make the excel file do the following

Search sheets JAN to DEC (ref cells: C4:I58 on each sheet) inclusive for the cell that contains today's (current actual) dateCopy the 8 (eight) cells below the cell that contains today's datePaste the copied cells in to the relative cells (ref: C8 to C15) in sheet one (ref worksheet: DC Info page)

I would also like this to be done automatically so the controller does not have to click on anything after they open the file. But if it needs a button to process the request, one could be added to the worksheet (ref: DC Info Page)

View 1 Replies View Related

Excel 2013 :: Saving Large Multiple Worksheet File

Aug 11, 2014

I have an Excel file that's updated monthly. when it does save its around 16mb and can take up to 12 hours to save, and sometimes just doesn't.

I have tried saving as binary, I have made sure exact size of area to be saved is required, I have tried save with no calculations.

Basically the only reason I need to save it is so that another analysis spreadsheet can pull data from it. The file is heavily formatted, charts, vlookup tables etc, none of which is needed when analysis spreadsheet links to it.

View 1 Replies View Related

Excel 2013 :: Merging Selected Lines In Worksheet To One Line - Removing Dupes?

Aug 12, 2014

I merged about 15 adresslists from media contacts to one excel list. Each list had a name i.e. music, health, theater, etc. and the same logic in colums. I added a few columns and have 1 large list now.

As some journalists write about music & health & theater, architecture, etc. they are listed up to 10 times in the new list now. But the "genres" from the original list i.e. music, health, theater, etc. are in different columns. Some of the lines have empty fields (i.e. no address or mail)

All I want to do is have one line with all the information of all 10 lines in it, merged, dupes removed:

company - firstname - lastname - Adress - Mail, etc. : genre: music - health - theater:
example.xlsx

I atteched an example of the full list and the result i want

View 9 Replies View Related

Excel 2013 :: Named Formula Scoped To Workbook Are Duplicated On Worksheet Copy?

Jan 27, 2014

I'm using some workbook-scoped named formulas to define some dynamic ranges which will be referred to by numerous worksheets. The named ranges are defined like:

NAME: gTable_costDetailsEquipment
REFERS TO: =globalParameters!$B$5:INDEX(globalParameters!$B$5:$C$1048576,1+countAdjacentNonBlank
(globalParameters!$B$5,"down"),1+countAdjacentNonBlank(globalParameters!$B$5,"right"))

From either of the tabs "Reports" or "DOR_Template" the user can press the large "+" icon to add a report (which copies the template or the last report to a new sheet).

When this Sheet copy takes place, excel is repeating my named formulas - this time it's making LOCAL versions scoped to the newly made worksheet.

I've used this copy sheet trick before and have never had excel create new, locally scoped, named formula for each workbook level name.

I also just recently started using excel 2013, is this a problem with the new version? I've just never seen this problem, usually workbook-level names are NOT duplicated on sheet copy.

View 2 Replies View Related

Excel 2013 :: Copy Method Of Worksheet Class Failed (Runtime Error 1004)

May 17, 2014

I'm using Excel 2013 and I'm getting an issue in vba I can't figure out. (This is something I've done several dozen time before) But everytime I try to copy a sheet in a workbook,

Sheets("Sheet1").Copy After:=WB.Sheets(WB.Sheets.Count)

I recently copied in this sheet from another workbook, and deleted all of it's formula names, but I can't copy any other sheets now either.

The Run time Error 1004: Copy method of Worksheet Class failed pops up. What is weird is that I put in a msgbox and

MsgBox (WB.Sheets.Count)

returns a "1" though the sheet has about a dozen sheets within it. I've saved the workbook and even saved it as another name.

The sheet I imported has a sheet number of 77 while the previous last sheet was 23, could this be a cause?

View 2 Replies View Related

Excel 2013 :: Copy Entire Row If Cell Contains Specific Text And Paste Values Into Another Worksheet

Jun 23, 2014

I am using the code below in Excel 2013.

Sub Test()
For Each Cell In Sheets(1).Range("J:J")
If Cell.Value = "131125" Then

[Code]....

This works great except that it pastes formulas. I would like to paste values only. I've tried
" PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False" and it gives me an error.

View 3 Replies View Related

Freeze Panes Via VBA Selects Wrong Freeze Point

Jun 1, 2012

I have a macro which I recorded, then modified. The first thing it does is to freeze the top row, then it goes looking for a particular row and inserts some formulae. Nothing complicated at all.

It WAS working perfectly, but I wanted some improvements in the insertion of the formulae. I got that working just fine, but now the panes freeze in the wrong place. No matter what I do, it freezes at cell I16. I want only the top row frozen.

Found this code which was reported to work:

PHP Code:

    ActiveWindow.FreezePanes = False    Range("A1").Select    ActiveWindow.FreezePanes = True 

It still freezes at I16. I have tried shutting down Excel, and even my computer, in case it is some weird bug where something is stuck in memory.

I tried recording another macro to format some cells and also freeze the top row. Same result.

PHP Code:

Sub wraptext_top_row()'' wraptext_top_row Macro''    
Rows("1:1").Select    With Selection        
.HorizontalAlignment = xlCenter        

[Code] ..........

Same result. I tried copying the contents of the worksheet to Notepad, then into a fresh workbook, just in case there's some weird hangup in formatting that I can't see.

There is NOTHING in the original code that references that cell, or even that row or column. NOTHING. How it got hung up on that one cell I cannot fathom.

The Freeze Panes command works normally if I apply it manually. Any cell, anywhere, it works as expected.

View 1 Replies View Related

Freeze Columns/Rows In Worksheet Index Code

Oct 4, 2006

I used the code in the link for "Create Worksheet Index" you referenced and it works great. Is there a way to have the Index and the "back to Index" links appear in separate stationary windows on the left side of the spreadsheets?

View 5 Replies View Related

AutoFilter VBA - Causes Excel To Freeze

Aug 6, 2013

This code does not work the way I expect it to. Presently it just causes Excel to freeze.

The idea is that if you double-click a cell within the CurrentRegion (starting at A1) that AutoFilters will be applied and the selection criteria will be the target value:

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim MyRng As Range
Dim MyCol As Long
Set MyRng = ActiveSheet.Range("A1").CurrentRegion
MyCol = Target.Column
If Not Application.Intersect(Target, MyRng) Is Nothing Then
ActiveSheet.AutoFilterMode = False
MyRng.AutoFilter Field:=MyCol, Criteria1:=Target.Value, Operator:=xlFilterValues
Cancel = True
End If
End Sub

View 3 Replies View Related

Excel 2003 :: Enable Freeze Panes

Dec 13, 2013

How to enable freeze panes, I am running excel 2003, I have no hidden workbook and I have followed the video that explains how to freeze panes, but it remains greyed out and I just cannot enable it..

View 1 Replies View Related

Excel 2010 :: How To Freeze Top Rows And Columns

Sep 25, 2012

How do I freeze the top 6 rows and the first 3 columns in excel 2010 work-sheet so when scrolling they remain static.

View 2 Replies View Related

Excel 2007 :: Freeze Pivot Table Format After Clicking Refresh

Feb 25, 2009

Is there a way to freeze your pivot table format after clicking for a ' Refresh'. I'm getting tired reformatting my column headers to wrap or in the middle etc. I'm working in Excel 2007.

View 6 Replies View Related

Excel 2013 :: Mail Merging From Excel Database To Outlook

Apr 15, 2014

Using EXcel 2013, Windows 8

I have an Excel worksheet with one column being e-mail addresses. Other columns are Christian names, etc

Ideally can I create a full Mail merge with Outlook using whatever data I want. But probably just e-mail address and Christian name?

Otherwise be able to send one e-mail to all the e-mail addresses, without a major re-type.

View 2 Replies View Related

Application Error When Worksheet Not Active

Mar 12, 2014

I am having an error in the following line of my code:

Set MyRange = Sheets("BackData").Range("rsJobTypes").Range(Cells(2, 1), Cells(cnt, 1))

If there is another sheet that is active, besides for the "BackData" sheet, I get an application error. I would like to know how I can reference this range without having to activate the sheet.

I tried adding "thisworkbook" before "sheets", but it did not seem to work.

View 3 Replies View Related

Named Ranges, Application Vs. Worksheet

Jun 30, 2006

Can named ranges defined using the Application.names.add method be accessed using the worksheet(x).names(name) property?

I would like to access only the named ranges on one worksheet, but, it seems to me that the names collection of my worksheet contains no names.

If this is a result of my declaring the named ranges using the application.names.add method, is there a worksheet property that I could use to access only the named ranges on that worksheet?

View 9 Replies View Related

Application Worksheet Function Error 1004

Feb 21, 2010

Ive created a small user form to convert food measurements.
My problem is the code is bugging out at the Function I made to do the calculations

I receive :
Runtime Error 1004
Unable to get the Match Property of the Worksheet Function Class

This is the function code.
You may want to explore the file to see if I ve it set up incorrectly.

View 8 Replies View Related

Copy Worksheet To Multiple Application Instances

May 23, 2008

I have a vba routine in my source application that creates a new instance of Excel and opens a new workbook in the new application using the following lines of
Set WoApp = CreateObject("Excel.Application")
Set WoBook = WoApp.Workbooks.Add
Set WoSheet = WoBook.Worksheets(1)

(This is standard code straight out of the vba Help for 'createobject')

The source appplication builds output in the form of worksheets which includes cell content and pictures placed in shape objects.

I need to copy each completed worksheet from the source application into the new workbook.
For example, if MyBook is in the same Excel application as the source then this code will do it:

Worksheets("mysheet").Copy After:=MyBook.Worksheets(1)

But this does not work for WoBook as it is in another Excel instance.

WoBook is recognised by the source. The following code does work:

WoSheet.Cells(1, 1) = "hello"

I have all the right reasons for wanting to do this (without saving the sheet and re-opening in the new instance).

View 9 Replies View Related

Use Application.GetOpenFilename To Search For A Several (.jpg) Files And List The File Paths On A Worksheet

Feb 13, 2010

I am trying to use Application.GetOpenFilename to search for a several (.jpg) files and list the file paths on a worksheet.

View 2 Replies View Related

Closing Another Application From Excel VBA

Sep 19, 2013

I have code that opens a .pdf file and copies the content to an excel spreadsheet.

However, in order to loop through multiple pdf's, I need to be able to close the Adobe Reader application before I open each new pdf file.

With excel being the active application, any suitable code to activate and close Adobe Reader?

View 1 Replies View Related

How To Auto Close Excel Application

Jun 15, 2014

Any way to auto-close the excel application after finishing my macro run?

I tried this code,but it doesn't work... i added a sub and ran it like this:

Sub CloseandSave()
ActiveWorkbook.Close SaveChanges:=True
End Sub

to be more specific,there is a macro running,closes all open workbooks,but excel itself stays open...

View 4 Replies View Related

Excel For Mac, Application.FileSearch Not Working

Nov 3, 2009

This relates to Excel for Mac 2004

I'm trying to use Application.FileSearch in a procedure to open files in a folder one by one and then do some stuff. It works fine when I developed it on my Windows machine but won't work on the Mac platform. The culprit instruction seems to be the

Application.FileSearch instruction, and I've also tried what I think may be a Mac equivalent Application.FileFind, but I get the 'Object doesn't support this action' error.

So I wrote a simple procedure below just to test the .FileSearch instruction but this fails in the same way.

Any ideas anyone? I've commented out lines which relate to Windows syntax.

View 12 Replies View Related

VBA To Exit Excel Application Not Only Workbook?

Feb 17, 2012

I have some code that I am using to save and close the active workbook, this code works perfectly, but I need the code to also close the excel application, not just the workbook. I have tried active window.close but it didn't work even though when I recorded the actions that was the code that I was give.

background -I set a task in my OS to open the workbook, then I wrote some code on the Workbook.open trigger to run and then save and close, but only the activebook closes.

View 2 Replies View Related

Application.FileSearch Is Not In Excel 2007

Jun 26, 2007

The Application.FileSearch method is not available in excel 2007, is there a similar functionality I can use?

View 9 Replies View Related

Application.Quit Not Closing Excel

Sep 13, 2006

I hate to have to come back to the forum after I Thanked you all for solving my problem, but here I am.

The code below disables the (X) button, no problems

Option Explicit
Public BooleanForClosing As Boolean
Private Sub Workbook_BeforeClose(Cancel As Boolean)
If BooleanForClosing = False Then
Cancel = True
MsgBox "Please Use Exit Button"
End If
End Sub

The next code saves the workbook , but won't Quit the programme and goes back to the Exit Button ...

View 3 Replies View Related

Excel 2013 :: Average Readings Per Day

Jul 2, 2014

Working in Excel 2013......... I take 3 readings per day, I would like to see the daily average per day

In cases where the data is blank or "0", just average the 2 readings.

Sample Data

Date Speed

6/1/20142560
6/1/20142550
6/1/20142558
6/2/20142554
6/2/20142537
6/2/20142532

[Code] ..........

View 4 Replies View Related

Excel 2013 :: No Column Headers?

Nov 28, 2013

My and a work college needed to combine our separate excel worksheets into a single document.

Office 2013 didn't have a function to "import sheet from file" so we used open office to import my .xlsx worksheets.

After we finished importing we exported the final workbook as .xls (so I could open it).

After opening the workbook on my pc (excel 2013) i notice some of the sheets no longer have column headers, but the row headings still exists. (No ABCD, only 1234)

Also I am unable to use features such as "Freeze Pane"

I suspect this was caused by importing and exporting through open office?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved