Avoiding A Save Conflict?

Feb 13, 2007

I have a workbook that multiple users access (read only) to do quick estimates.
This workbook has a "Print & Record" button/macro that does just that... it prints two copies of the estimate, then records/copies the basic data to another workbook (Retail Estimates Data.xls). The macro opens, pastes to, and closes this file in a fairly quick time frame, but it is conceivable that two (or more) users could be trying to do this at the same time.

What I need is some code to check if the Data file is open by another (read only status?), and if so give a message to that effect, and ask to try again, by which time the other user instance should have finished with the file.

View 5 Replies


ADVERTISEMENT

Conflict Between Auto Save&close Macro And Show/hide Sheets Macro

Oct 16, 2009

I am trying to make a save&close workbook macro.

I found several examples on google, but unfortunatly it conflicts with another macro I use for forceing users to enable macros (hide all sheets except one if macros are disabled).

The attached file is an example contaning the save&close code and the show/hide sheets depending on macros enabled.

If the file is opened with macros disabled then only one sheet will be visible.
If the file is opened with macros enabled other sheets are visible.

The problem if that this code uses a custom save, witch makes the save&close not save... (in module1 and in ThisWorkbook)

The pourpose of the save&close is to make sure some users don't forget the excel open and thus block access to it. So if a certain idele time passes excel has to save and close without any confirmation messages.

View 10 Replies View Related

Conflict Of Two Macros

Feb 15, 2010

I have the below two codes in my worksheet, the first one is run using
a button and the second one is an automatic macro to enter fixed
dates. There seems to be a conflict, as each time I use the button to add a
row, I get an error, and when I go to debug it highlights this row in
the second macro --> If Target.Value = "" Then. Is there a solution? I can't see why there is an error, as both are
separate codes?

View 2 Replies View Related

Conditional Formatting Conflict

Apr 10, 2009

I think I have a problem with a conditional formatting conflict. I have 2650 rows and columns A - H. The rows are alternately shaded using =MOD. In column "A" I will enter serial numbers. I formatted column "A" to showed any repeated serial numbers in red with =COUNTIF($A$3:$A$2650,A3)>1. It works with one problem. Any repeated serial number in a shaded cell appears as black. I assume there is a conflict between the two formulas. I have tried switching them, but nothing I do will make the serial number in the shaded cells appear as red.

View 3 Replies View Related

Cell Name Conflict With Macro Code

Jan 29, 2013

This is my code:

=IFERROR(IF($B$41="","",HLOOKUP($B$41,InsulationH,(Mark+1))*$C$41),"")

If value of $B$41 is "A1", it does not execute

In all other cases it works fine ("B1", "C1", "D2"...)

Apparently, it's a cell name conflict with macro code

View 2 Replies View Related

Data Validation Conflict After Submit Button - VBA

Feb 10, 2014

I have a simple form built, but the data validation is only partially working. I've attached a sample workbook.

basically, when a user tries to put in a letter in the GP interaction field rather than a number, it prompts user to re-enter. This part is working, except when the submit button has been clicked, the field clears. the field clears, it prompts the user to re-enter.

form based input - Copy.xlsm‎

View 3 Replies View Related

Version Coding Conflict XL 2007 Vs. 2003

Dec 3, 2009

With the kind help of this forum, I put together a nice business tool that has a fair amount of automation via macro buttons, etc. It works great in XL 2007 but some users are having issues in 2003. I appreciate this is quite general but are there significant conflicts / differences with coding in these two different versions?

View 6 Replies View Related

Filter Locked Worksheet Conflict - 2000 Vrs. 2003

Feb 1, 2007

I recently launched a model that uses filtering on protected worksheets. The model was developed in Excel 2000, and everything works perfectly for the users who are also on 2000, but my Excel 2003 users get an error on opening the workbook.

The error asks for the password to unlock the sheet and is difficult to clear. Users have to hit Cancel 8 times to clear the error, at which point, the model appears to function perfectly. (There are 12 worksheets in the model, 2 with filters, all locked and password protected.)

The follwoing code is in the 'ThisWorkbook' module:

Private Sub Workbook_Open()
With Worksheets("Initiatives")
.Protect DrawingObjects:=True, contents:=True, userInterfaceOnly:=True
.EnableAutoFilter = True
.Protect contents:=True, userInterfaceOnly:=True
End With

Because the error occurs when first opening the model but not at other times, I'm thinking that there's something in the Workbook_Open procedure that is causing the error.

View 9 Replies View Related

Avoiding #NUM!

Sep 13, 2005

I've got a couple of formulas for doing in single step:

B A
A B
F D
A F
A #NUM!
D #NUM!
F #NUM!
D #NUM!

but I'm unable to avoid those #NUM!

View 9 Replies View Related

Conditional Formatting Conflict: Change The Cells Font Color And Bolding As Long As The Value Is Within That Date Range

Oct 19, 2006

I have two conditions setup in Options>View - Zero Values.", "style="background: #FFFFFF;padding: 2px;font-size: 10px;width: 550px;"");' onmouseout='GAL_hidepopup();'>formatting.htm" target="_blank">conditional formatting. The first is setup for alternate row coloring with this formula inside Conditional Formatting:

Formula is = MOD(ROW(),2)

My Second Condition is

Cell Value is between $P$10 and $Q$10. This sets the font bold and a different color. The two cell values are two dates. I want to change the cells font color and bolding as long as the value is within that date range. It works fine, but for cells that are on the row that is colored the second condition doesn't apply for some reason.

View 7 Replies View Related

Avoiding VALUE When Drag Downwards

Jul 9, 2014

I have a perfect formula

=IF(A2>1,A2/1.16,"")

It does exactly what I need , it does not calculate on empty rows , but it calculates on heading rows , how can I modify to avoid this.

See file attached , I don't want the value on b6 when I drag downwards.

07 09 value avoiding.xls‎

View 11 Replies View Related

Avoiding Re-calculation F9

Oct 18, 2009

I have a sheet that requires me to press F9 each time I open it to re-calculate all cells. Why do I need to do this on this 1 sheet? A few months back it was fine and didn't require the extra attention.

View 2 Replies View Related

Avoiding #VALUE Error

Jan 25, 2010

Attached is a worksheet to show...

1 - D2- because the supplier has no address it shows up as "0" can you guys help me fix that to show nothing?

2 - Can you guys help me build a formula for E8? Right now I have it as $C8*$D8 it works fine until C or D is empty it gives me the #VALUE because I have a formula in D. Because of the #VALUE my formula in E14,15,16 does not work.

View 8 Replies View Related

Avoiding $0.00 Display

Jul 29, 2006

I am multiplying cells and copy down the column to make it easy.

Cell D17, has "=A17*B17" in it. This is fine when there are numbers to compute, but when there aren't, D17 will display "0". How can I have cell D17 remain empty if nothing is put into A17 and B17?

View 3 Replies View Related

Avoiding Double Counting?

Apr 7, 2014

I am trying to avoid double counting two separate rows with the same columns. For example:

StockFund AFund BFund CFund DFund EFund FFund GCountDesired Count
LKOH111100044
LKOH001111042

If I have two stock codes the same in column A (not necessarily one below the other), I only want to count one of the occurrences per fund. So I would like to avoid counting the duplicate records for funds C and D. The desired outcome for the total holdings of LKOH should be 6 and not 8.

View 2 Replies View Related

Avoiding Circular Reference

Jun 25, 2009

Let's say I have a sheet called Category. Column A contains code; column B contains description. Now I have another sheet in which either column F contains a category code or column G contains a category description. I want to look up the code in column F if the description is given or the description in column G if the code is given. I thought I might be able to do something like:

in F2: IF($G2<>"",INDEX(Category!A:A,MATCH($G2,Category!$B:$B,0)),"")
in G2: IF($F2<>"",INDEX(Category!B:B,MATCH($F2,Category!$A:$A,0)),"")

(and then copy the formulae down the rest of the columns of course). In other words, if the cells were both empty then there would be no common dependency; it would just set them both to empty. However, if I provided either value then it would overwrite the formula in that cell so there would be only one formula left and nothing to be circular dependent about.

However, it must be looking at the condition itself and seeing the two columns in common because it is coming up with a circular dependency. I thought I might be able to trick it by having IF(INDEX($G:$G,ROW())<>"",... but it still doesn't work.
This sort of situation must crop up from time to time. How do we get around it?

View 3 Replies View Related

Avoiding #value! Errors In My Formula

Nov 17, 2009

I have the formula =today()-g3 which works fine to let me know how many days a loan has been out. However when there is no date in column g i get #value! errors. Can anyone reccomend an alteration to the formula to avoid these errors showing up as they dont look great.

View 2 Replies View Related

Avoiding Arrays - Workaround

Sep 10, 2008

How do I avoid using arrays? I am reaching Excel 2003's limit.

Our workbook has many worksheets, each with tables generated from queries that have multiple columns. On the first sheet we have arrays that refer to the other worksheets. Such as:

{=SUM(IF(('Prime Change Orders'!G$2:G$10=C17)*('Prime Change Orders'!D$2:D$10

View 9 Replies View Related

Avoiding Complete Duplicates

Apr 22, 2006

I have a worksheet of Users with columns pertaining to first, middle, and last names. I want to allow duplicates in each column but not a completely duplicated record.

View 9 Replies View Related

Avoiding Formulas In Many Rows

May 7, 2006

I have a simple spreadsheet that will be used by others for records management (rehabilitation case management). I have entered the code for most of the 'stuff' that I need to make the workbook easy and simple to use, and get the data back to head office each month.

Because the users will be emailing their records and I haven't yet worked out a way of sending just the "open cases", I need to keep the workbook/worksheets small (and to maintain good programming).

In column L, I have copied this formula from L2:L501:

=IF(ISBLANK($K2),"",VLOOKUP($K2,LOCSTAT!$A$1:$N$299,2,FALSE))

Column K is where the case-managed person works and so column L returns the geographical location value. Obviously it's blank until the case is opened by starting a new record and entering each field with data. For example, the user can select " Finance" from a validated drop-down list and the adjacent cell (to the right) will look up the value and return "Parramatta".

How do I translate the cell formula to some VBA?

I suspect that the static VLOOKUP range in the formula (LOCSTAT!$A$1:$N$299) will need to be dynamic range as well - I can follow the instructions for a single column dynamic range, but I am also getting lost working out how I can create a dynamic range for all data on a dedicated worksheet.

I'll be able to translate a solution to other cells as well

View 8 Replies View Related

Avoiding Double Vlookup

Jun 9, 2006

I am tring to find a more efficient way of avoiding a double Vlookup function.

=IF(ISNA(VLOOKUP(A6,Sunday!$A$72:$AM$86,38,FALSE)),"",VLOOKUP(A6,Sunday!$A$72:$AM$86,38,FALSE))

I have read over this forum but still haven't understood any solutions.

A6 is a name.
The name may not be on the worksheet the function is looking up.

View 4 Replies View Related

Avoiding #VALUE Errors On Blank Cells

Jun 23, 2008

Is it possible to inset a bank into a cell, and use that cell in a subsequent addition formula?

For example;

A1 contains 1
B1 contains 2
C1 contains =IF(A1=1,"",3)
D1 contains =A1+B1+C1

In the above case the cell D1 contains #VALUE and not 3, whereas if C1 were actually blank D1 would contain 3.

The reason I ask is that a blank is not the same value mathematically as 0. The latter is the number zero, whereas the former is the lack of any number.

View 10 Replies View Related

Avoiding Non-numerical Values In A Range

Jan 1, 2009

I have a range, A1:A10 that I want to sum, min, and max. I want to ignore any text or #DIV/0! values in this range. I know how write the formulas except how to ignore the text and cell errors. Can someone steer me in the right direction?

View 5 Replies View Related

Avoiding Invalid Worksheet References?

Feb 25, 2014

I am combining the information from multiple files--one per state, for several states--into a single large table so it's more easily reviewed. Each file has multiple worksheets, named for categories. The category/worksheet names are standardized, but not all worksheets are found in every file.

There is some overlap of items from state to state, so my macro copies key fields from each worksheet and pastes them into the new table and adds a column on the left with the name of the category/worksheet each item came from. It then removes any duplicates to create a list of unique items. Across to the right, the table has two columns for each state, one to show if the item exists there, and the other the date it was added.

In the final step I am using lookup formulas to populate the states columns, using the category/worksheet name from the left-hand column to identify which worksheet to pull from. When a worksheet doesn't exist in a source file, however, this creates an invalid reference.

Is there any way to use VBA to identify which worksheets are in a file so I can use the results in an IF/THEN statement to bypass any lines that would create the invalid references?

View 2 Replies View Related

Avoiding Exponential Numbers During Import

Dec 16, 2008

I have some short code that imports data and account numbers that is "|" delimited. The problem I am having is that during the import, excel converts some of the account numbers to exponential numbers.

e.g. it converts 542690E24 to 5.4269E+29.

Is there a way to avoid this from occuring during the import? I tried to format the destination cells as '000000000' (all accounts are 9 digits) but it didn't work.

View 6 Replies View Related

Avoiding Duplicate Serial Numbers

Nov 20, 2008

I have in my sheet from C13 to C350 many serial numbers which I manually type them in. These serials are 5 digit numbers, and I was just wondering if there's a function or formula that will not allow duplicate numbers in that column.

View 9 Replies View Related

Avoiding Text In Array Formula When Using SUM Function?

Feb 4, 2014

I have a problem with an array formula where I want to sum the values in every 7th row. The problem I have is I am receiving #VALUE! in my returing cell of the formula when there is text in the array. Is there a way I can avoid including the text in the array or maybe error checking using ISERROR and ISNUMBER.

The array formula I am entering is: [Code] .........

View 4 Replies View Related

Avoiding Display Of Empty Series In Graph

Apr 3, 2007

How can I avoid that an empty series shows up in the legend of a graph?

View 9 Replies View Related

Avoiding Copy And Paste In Hidden / Filtered Cells

Aug 5, 2014

I have searched all over and read many solutions for selecting only visible cells and copy pasting them or formatting them by doing Ctrl + G and selecting visible cells only. However the problem is once I select visible cells only, it seems that every time I do Ctrl + C on filtered Range it only selects visible cells. I want a way to toggle this setting in Excel. I'm using Office 2007. For example: if I want to select the entire range, both hidden and visible cells within the selected table array, is there anyway to reverse or toggle the setting that causes Excel to refresh the "visible cells only" setting back to default or all cells?

It would be a much faster way than to remove all filters, select & copy entire range, and then re-apply all filters again.

View 5 Replies View Related

Formula To Calculate Result Whilst Avoiding Errors Is Too Long!

Jan 22, 2010

I have a formula I've been using for a long time which uses VLOOKUP to find results based on various reference cells, and then adds them up. To avoid errors caused by VLOOKUP not finding anything for one of the references I have also used ISERROR. The formula returns a blank if the calculation returns a zero.

I now need to bring further references in to the calculation but, using the format I have been, the formula is now too long. Here is my extensive formula:

View 3 Replies View Related







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