Toggle Switch For Turning Protection On Or Off
Feb 6, 2012
How can I do the following:
I need a toggle switch that switches between protecting and unprotecting the worksheet.
It should display the text 'Entry Mode' when the sheet is protected and 'Filter Mode' when the sheet is unprotected.
View 3 Replies
ADVERTISEMENT
Sep 4, 2006
I work in the field of education and the spreadsheet I'm working will require pupils to enter answers into the spreasheet. When a command button (New Questions) is pressed I want the VBA code to switch the cell protection (locked) on or off depending on a random value in cell c2. If c2 = 1 I want f3 to be locked, if c2 = 2 then d3 needs to be locked, but not f3. I've attached a copy of the spreadsheet to this email
View 5 Replies
View Related
Jan 6, 2009
I have created a very long switch statement, which is too long to be placed in one row in VBA. I have attempted to put a space and underscore at the end of one line and continue the statement on the row below by placing a comma at the start of the second line. VBA will accept my efforts, but when I run the statement in the immediate window, the following error appears.
"Invalid procedure call or argument"
I understand that there are certain rules where I can split a switch statement onto two lines, yet I do not know what they may be.
View 9 Replies
View Related
Oct 3, 2007
Is there any way you can use VBA to assign a key to toggle between two different cell formats? I want to toggle a cell from white border with black text to black border with white text and visa versa, with the same key or button. I've searched the posts but can't find this mentioned.
View 6 Replies
View Related
Aug 18, 2004
I recieve an error :
Run-time error '50289':
Can't perform operation since the project is protected.
When i try and run my code.
The code does add parts to modules and workbook events, but I need the code to be protected.
View 9 Replies
View Related
Jul 8, 2008
I have this annoying problem with my excel 2003. And i have no clue at all how to solve this.
Each time i write 2.5 it turns into 02.may. Does any one know how i can fix this?
View 14 Replies
View Related
Oct 22, 2013
I fill out this form everyday and sometimes need to type "S" and every time it fills in "Sampling Rate #1" because that's what it says in the same column higher up. Is it possible to turn this off somehow?
View 3 Replies
View Related
Apr 13, 2008
I want to turn on (tick) a check box from within a macro.
View 9 Replies
View Related
Jun 13, 2006
I have a sales and prospects spreadsheet. It has information in columns A to O. The last 3 columns M, N and O, require a 'Y' for Yes or 'N' for No entry. If entering N, the background colour of the cell turns grey using conditional formatting, and if entering Y the background colour of the cell turns Gold using conditional formatting. Column O is headed 'Sold', so that column is onviously the final Y. Upon entering Y in column O, ie the sale is made, I's like it that the whole row, so all cells of that row in columns A to and including O turn gold to easily visually differentiate done deals from prospects.
Also what would be cool is if when a deal is done, it not only turns the whole row gold, but moves the row to the top of the sheet, so by dividing done deals from prospects, that is utopia at this stage though, more important is turning the row gold upon a Y entry in column O.
View 9 Replies
View Related
Mar 27, 2009
I have a user form that has several tab pages on it when the form opens it checks to see if the user has entered there default info if it is empty it needs to go to the default tab so the user can enter there info. How do I do this using vba in excel 2000 I have not been able to find any code that will do this if I use the set focus option for a text box on the tab page it comes up with an error saying the item is not visible! The user forme is names = UserDataInputForm. The tab pages I have are
1st = InputDailyTimesPage
2nd = OverTimePage
3rd = DataPage
4th = DefultDataPage
the form opens using the 1st tab page by default
in the user forms inisilisation code I have this check
View 2 Replies
View Related
Mar 17, 2006
I have created a database of names & addresses from a software program called "CLIP" into excel, which in turn will become a label mail merge in MS word consisting of 900-1000 customers (for a mass mailing).
The problem is, the names were created last, first and I would like to change them to first last. Is there a way to do that without manually typing them all in again?
The names are in one column, so I cannot just switch the columns around.
View 11 Replies
View Related
Feb 3, 2014
I try to code some vba here's my example
1 A B C D
2 3 5 1 2
3 1 2 0 1
4 1 3 0 1
5 1 0 0 0
I want to sum in line 2 all values below but i dont know how to switch to next collum in vba
View 6 Replies
View Related
Mar 17, 2008
have been using the simple formula below to determine between a friend and myself whos turn it is next.
=IF(Q22
View 9 Replies
View Related
Dec 12, 2007
I recently installed Office 2002 onto a new computer and found that whenever I drag-and-drop any amount of data from one cell to another, a loud obnoxious noise plays when I release the drag-and-drop data.
I was using the same version of Office on my old computer and did not have this problem.
I'm guessing it's a clipboard issue, since when I open the Excel clipboard (where I currently have all options as unchecked) and copy something so it is captured there, the same noise plays.
I already have turned off Windows sounds via the Control Panel and have no clue how to turn off this sound.
View 12 Replies
View Related
Feb 13, 2014
I'm going through financial statements and I would like to be able to run full blown analysis on them. Most public financial reports are written so that a lot of zero's do not take up the useful space. As such (and there is a ton of this solution out there I've found), many people want to take $1,500,000,000 and turn it into 1.5M
I however, do not. I want to convert it backwards. So when something says 5.19 I would like to format it in such a way that it will read (and I can run calculations against it) as 5,190,000,000 (there are no alpha characters, there are instances where there will be negative numbers). Then I could copy this to the 17 different financial statements I've already got rock'n rolling in Excel right now.
View 4 Replies
View Related
Mar 18, 2014
I have the Macro
[Code]....
That starts a timer macro (Recalc) in my excel sheet when the workbook is opened, my issue is that when the work book closes it continues to run.
Will the following macro fix this problem, or is there some command like Workbook_Open() but for closing?
[Code] ....
View 1 Replies
View Related
Sep 23, 2009
I have a workbook that has many Pictures created with the Camera command. I have found that VBA macros in any workbook open at the same time as the one with Pictures run very slowly. Is there a way of temporarily turning off the Picture Refresh within the VBA in the same way as you can turn off automatic formula updating.
Keith
View 7 Replies
View Related
Oct 18, 2011
I have 2 lines with pairs and 3rd with corresponding values, nee to construct a matrix out of it with formulas
Example
Need to turn
AAABBDBCDCDC0.30.20.130.550.840.43
into
ABCDA11-0.31-0.21-0.13B0.311-0.551-0.84C0.20.5510.43D0.130.841-0.431
So the one that stands above in the initial file goes to the top line in the matrix. 2 line -> column in matrix. In case there is no match need to seek reverse in 1,2 and reflect as 1-VALUE in the matrix
View 3 Replies
View Related
May 14, 2012
Current Tabel:
Sheet1
ABCDEFGHIJKLMNO1EVENT NAME DATEGROUP / LOGOEVENT LOCATION DELIVERY DATEITEMCountMUGSBLK T'SPADSGREY T'S DRIVEBLK PENSCOINSBLK POLOS35Inter.05/01/12ABCShip to ABC04/25/12 60 45 32
This is what I want to do with it:
Sheet1
ABCDEFG1EVENT NAME DATEGROUP / LOGOEVENT LOCATION DELIVERY DATEITEMCount35Inter.05/01/12ABCShip to ABC04/25/12MUGS6036Inter.05/01/12ABCShip to ABC04/25/12BLK T'S 37Inter.05/01/12ABCShip to ABC04/25/12PADS4538Inter.05/01/12ABCShip to ABC04/25/12 DRIVE3239Inter.05/01/12ABCShip to ABC04/25/12GREY T'S 40Inter.05/01/12ABCShip to ABC04/25/12BLK PENS 41Inter.05/01/12ABCShip to ABC04/25/12COINS 42Inter.05/01/12ABCShip to ABC04/25/12BLK POLOS
View 9 Replies
View Related
Apr 1, 2014
How to stop my 100% from changing to 1000% after it pastes?
Here's the pc of code that is performing the copy/paste from one sheet to another sheet within the same workbook..
Code:
With Sheets("BOM Worksheet").Range("C" & nr)
.Value = c.Offset(, -16).Value
.Font.FontStyle = "Bold"
.Font.Color = RGB(186, 85, 211)
End With
View 6 Replies
View Related
Aug 28, 2008
I have a column of dates and have been asked to turn a cell next to it green, orange or red but I don't think this can be done?
Otherwise is there a way to turn the background of the cell a different colour, am sure there is?
What I need is if for example the date in the column is 01.08.08 then up until 7 days I want it to turn green, between 8-10 days I want it to go orange and over 10 days it needs to go red. Is this possible?
View 9 Replies
View Related
Dec 17, 2008
I need to turn a list of information into a true spreadsheet, how do I look up the information to fall under the appropriate headers?
Example:
Instead of...
Invoice # 000
Date Of invoice 01/01/08
Name: Smith/Steve
Invoice # 001
Date of invoice 01/01/08
Name: Smith/Sally
I need...
Invoice Date of invoice Name
000 01/01/08 Smith/Steve
001 01/01/08 Smith/Sally
View 9 Replies
View Related
Jan 14, 2009
"Decision Date". It is a numerical date (ex: 1/5/09 indicating January 5th 2009).
I need to turn that date into the week that it falls into within a particular quarter of a year.
1/5/09 would be Week 2 (it is in the second week of January, and 2nd week of the quarter)
2/3/09 would be week 6 (6th week of the quarter).
And then I need the formula to start over once each quarter restarts... for example, April 1st would be week 1 (1st week of the second quarter).
View 9 Replies
View Related
Feb 3, 2010
I have this formula:
=IF('2010'!R10C2="y",'2010'!R10C3,"")
And I want to be able to drag it down and have the cells update, but all it does is keep the same values.
Is there something I need to turn on or off.
View 9 Replies
View Related
May 30, 2006
i would like to know how to turn the word beside into numbers, ie if b=2,e=5,s=60,i=10,d=4,
also can this word be in the one cell or would it have to be entered separately, ie one letter per cell??
View 9 Replies
View Related
Apr 23, 2007
how to turn on the Comment Indicator through VBA? The code equivalent of setting Tools / Options / View and then selecting the Comment Indicator Only option.
View 2 Replies
View Related
Apr 11, 2014
The setup here is I have multiple codes for a product. Coding structure is as follows (options are contained in parantheses):
N -(T,P) - (5L,6,7,8) - (DFL,DJL,DBL,UEDF) - P - (1,6,9,16,19,1H,1H9) - (g,s,blank) - (a,blank)
Clearly, there are a ton of options. What I'm doing is screening those codes and breaking them down into their component parts.
ex) NT6UEDFP1a: N - T - 6 - UEDF - P - 1 - a
ex) NT6DFLP16: N - T - 6 - DFL - P - 16
I'm trying to do multiple if/then scenarios for each option. However, the way I have it now, I'm getting a FALSE when I switch between these two examples (the dfl works, the uedfp generates false). (there are other codes which is why the first line is there. I'm just having trouble with this particular "nt/np" group)
=IF(OR(LEFT($A$14,2)="np",LEFT($A$14,2)="nt"),
IF(OR(MID($A$14,4,3)="dfl",MID($A$14,4,3)="dbl",MID($A$14,4,3)="djl"),[code].....
View 2 Replies
View Related
Aug 15, 2009
I have several phone numbers that I copy and paste from the web:
I.E:
(888) 456-7890
(333) 234-5678
I need to switch all of them to just standard numbers: They should look like this:
8884567890
3332345678
I go to "format" - "cells" - "numbers" but nothing works. I wonder if any formula can do it. It should work for ALL THE LIST, I want something else than change them one by one by hand.
View 2 Replies
View Related
Jul 13, 2008
I have made a little program for a customer at work which has 4 different worksheets.
Each worksheet works out a cost based on different prices.
I would like to make a 'Welcome' worksheet, with buttons on it so my customer can click the button which corresponds to the option he would like to cost, and then excel automatically selects that worksheet.
how to create buttons but don't know the code to but behind it. It would be nice to also hide the other 3 worksheets when they have not been selected by the welcome page.
View 9 Replies
View Related
May 5, 2009
Is there a way to use a switch statement with a default value, for when none of the expressions evaluate to TRUE?
View 5 Replies
View Related