Alert User If Columns Deleted
Oct 18, 2006
I have a worksheet which periodically is cleared down to allow new data to be added. i.e. if 40 columns are in use 20 might be deleted. There is a calculation that depends on a named range which always changes when these columns are deleted. s there a way to remind the user to expand the named after any columns are deleted? Columns are deleted from Column H.
View 3 Replies
ADVERTISEMENT
Nov 2, 2006
I've created a Macro in Excel that takes the value from the selected cell and filters an Access DB for that appropriate record.
I'd like to modify the button so that if the cell does not contain content that begins with "DR-" the button is greyed out or inactive so that it cannot be selected until a cell with the proper content is selected.
View 8 Replies
View Related
Dec 7, 2008
I just discovered VBA coding today and was wondering if I could use it as an audio alert. I found a couple examples online but don’t understand the coding language of excel. I have a feed link from my trading platform to excel that feeds in live data. What I would like to do is have an alert for when Range ("C4").select is >=1000 Alert Ring.wav and when Range ("C4").select is <=-1000 Alert Chimes.wav.
View 5 Replies
View Related
Apr 20, 2013
I am using following code to effect a change which works fine:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Sheets("Closed Flts").Unprotect "abcd"
Sheets("Faults").Unprotect "abcd"
[Code].....
But when the sheet is unprotected to effect this change the formula in cells ( row I and L) are visible to user and can delete them. Or they can even delete the cell itself or modify formula.
The formule in Row I is
Code:
=IF(A12="","",IF(G12=1,A12,IF(G12=2,A12,IF(G12=3,A12+1,IF(G12=4,A12+5,IF(G12=5,A12+28,"priority?"))))))
And in Row L is
Code:
=IF(A13="","",IF(I13
View 1 Replies
View Related
Mar 27, 2007
Each month I get a report that I process using a macro. The problem is that each month the name of the file changes and is different. When I run the macro and it crashes I have to de-bug by going through the code to change all references to the file name from the the previos run and change to the latest file name and then re-run the macro. There must be a better way.
I would like to learn the code that sees the open book and then refers to it for the run.
What is the best way to do this?
View 6 Replies
View Related
Jun 13, 2008
I am trying to do something that is probably impossible, but I figured if anyone could come up with a solution, it would be you folks here at Mr. Excel, so here goes.
I'm trying to set up two columns in Excel 2000; for simplicity sake, let’s just call them Column A and Column B. Each row in Column A will contain a code (a combination of letters and numbers) that represents one of 65 different workstations, and they could repeat multiple times. Each row in Column B will contain a number that represents a specific tool, and there are potentially hundreds of different tool numbers.
What I am trying to accomplish is to have something alert me when any tool number in column B appears alongside more than one workstation code in column A. It would really be nice if something like conditional formatting could be used to change the text to red or something when this happened. I know I can use filtering to accomplish this, but with hundreds of different tool codes, filtering just takes too long.
View 9 Replies
View Related
Aug 21, 2009
Complete List of People in Column AA.
Partial lists of these same people in columns A, C, E, G, I, K.
Goal: Once I put that persons name in A, C, E, G, I, K, I would like it to be deleted from Column AA.
View 9 Replies
View Related
May 4, 2006
I have a spread sheet that I pull data from different columns on a particular row. The problem is the code I used works great as long as the column never moves from its current location. Is there a way to use a named range to make the following piece of code work, so no matter how many columns are added or deleted the data is pulled correctly?
View 2 Replies
View Related
Jun 27, 2013
We have created a macro that basically looks for rows that contain an "H" and hides the row if it does.
Users can add new rows throughtout the year to this spreadsheet. and based on certain criteria, an H or U will be placed in a hidden column which the macro looks at and hides any row it finds an H.
The user has to click on the button that has the macro assigned to it once they have finished working on the spreadsheet.
The problem we're finding is that for users who insert/delete rows, once they click the button it takes up to 15 seconds to run through macro (which is ok). However, users who haven't added or deleted any rows and who click the button, they have to wait upto 5 minutes (which isn't ok) for the macro ro run.
We can't figure out why the macro takes longer to run when no changes have been made?
View 8 Replies
View Related
Apr 21, 2009
The attached file contains a list of customers from 2 years in column A and B respectively. I want to write a sub that takes a single argument customerName(a string variable) and it checks whether the customer is in both lists. If so, I want it to display a message and bolds both instances of the customer's name. Otherwise, I want it to display a message that the customer's name is not on both lists. I also want to write a sub that uses an input box to ask for a customer name, then calls the original sub with the customer's name as the argument.
View 4 Replies
View Related
May 30, 2007
I need to use the user form to create the fields in the next free column in the parts data sheet.
At the moment, it just writes over the firsst part i create. Have tried countless methods but am new to this vba business. To take it a step further, i need to concatenate the three fields and copy this into the parts data entry, Again i have tried (see code) but cant get it to work. Finally, If possible, I would like to check the parts already created, so duplicates cannot be made.
View 9 Replies
View Related
Apr 27, 2014
I am using this code to copy columns C,D, and P from a user selected workbook into position C,D,E of workbook "Checklist.xlsx" (the one from were I run the VBA code). I don't have a clue about VBA, just have been gathering info, but the code works pretty fine. The only issue is that it opens twice the workbook "wbExt" hence the system prompts me if i want to reopen the already open workbook.
Some questions:
1) Is there a way to copy the 3 columns at once? something like "Columns("C:D, P").Select".
2) Is there a way to select the workbook from were to copy the column without needing it to actually open?
3) is there a way to paste the columns starting from row 3 instead of row 1 (Range("C1").Select)?
View 2 Replies
View Related
Mar 28, 2009
Is there a way of a user can add a number in a cell and this would hide a different amount of columns.
OR :
Ideally I would prefer a drop down with dates and the user could select a forward date and all the columns with dates up to that would appear. This would mean they could look as far our as required and all unwanted data would be hidden.
View 4 Replies
View Related
Jan 9, 2009
How would I reorder columns & tabs based on a form where the user can put them into order that they would like the columns? I forsee some type of form where the user can dsignate the order and then start a macro that will sort both the columns and tabs.
View 5 Replies
View Related
Feb 21, 2014
I am trying to create a macro that will compare several un-formatted workbooks and copy just what I want to a workbook of my one.
I start by having 2 different workbooks opened ("Main" and "Change") side by side like this: 1.jpg
Then i run the macro in my "Main" workbook and it should appear an Userform like it showed in the image below: 2.jpg
This is so that i can manually fill the user form with the correct columns by looking at the excel file, for example:
Ref=E3;City=G3; Data=I3.
Pressing Ok, it fill the "Main" workbook with the matching information so it and closes the "Change" workbook.
At the moment my code is in this stage:
VB:
Private Sub CommandButton1_Click()
myfile = "C:Userssst1brgDesktopRelatorios" & TextBox1.Value
Application.Workbooks.Open Filename:=myfile
Windows.Arrange ArrangeStyle:=xlVertical
[Code] .....
But I am stuck because there isn't any error and nothing happens.
View 1 Replies
View Related
Feb 15, 2012
Data is input into my spreadsheet. It is not always in the same cell, and is not always the same length vertically. I want the user to select the top left of the data and then automatically do text to columns. Here is my code that is not working! :
Sub TextToCol2()
Dim rng As Range
Set rng = Application.InputBox(prompt:="Select a cell", Type:=8)
ActiveSheet.Range("rng:A" & Range("A65536").End(xlUp).Row).TextToColumns DataType:=xlDelimited, ConsecutiveDelimiter:=True, Space:=True
End Sub
View 3 Replies
View Related
Aug 19, 2008
I have a feeling the answer to this will be 'no' based on the searching I've done, but is it possible to allow formatting of rows/columns on a protected worksheet, yet prevent the user from unhiding some rows/columns I don't want them to see? I've allowed them to format rows/columns so they can "size" them to fit the text they enter, but that has opened up the ability for them to unhide columns. Using Shrink To Fit would be cumbersome due to the number of cells involved.
View 5 Replies
View Related
Dec 10, 2012
Date
#
Lname
Fname
[Code].....
With that said, I want to put the row number of a user in (I have a few thousand on this spreadsheet, and all the = data be automatically pulled based on the row number I put in cell B1. So I'm hoping to write in cell B1 the following - "143" (without the quotes), and the remaining cells in column B automatically pull that data based on that, so it would look like the following
Row #
143
Name:
=C143&" , "&D143&" "&E143
[Code]....
How do I write the functions to keep the columns the same, but change the row number based on the number I input?
View 3 Replies
View Related
Oct 29, 2008
I am trying to add a sound alert to a junior athletics recording program. The date of the meetings is in column (A), results are entered in column (B) for a particular event, say 100m sprint. Column (C) & (D) contain formula that recognise if that athletes result is a personal best (PB) result or a club record (CR). I am after a code that will play a sound when a new PB or CR has been achieved. I have downloaded the sounds I want into the office media file. I am new to VB codes. Any suggestions?
View 14 Replies
View Related
Mar 8, 2007
In ("a1") i have a time e.g 12:30
in a2 it is 1:40 ......................etc
i want a vba code that play a file.wav when the time exactly as in a1 then play it agin when it as in a2 repeating it self to .............a12
View 9 Replies
View Related
Oct 28, 2009
I have this
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A1") >= 2 Then MsgBox "Check: " & Me.Name, 64
End Sub
but I need to get a msgbox when the value of A1 is >= 2, then when the value is >= 4, then >=6, then >=8 , ............
the value of A1 is going to be increasing by decimal points as I enter data.
View 9 Replies
View Related
Nov 25, 2008
I have a chart that's being updated with different values when I cklick on different radiobuttons. When the cells that the radio button refers to is empty or the calculation in the cell have an error it pops up a message that I need to click OK to go on. Is there a way to stop these alerts by writing a script that shuts the alert messages off during each click?
View 2 Replies
View Related
Dec 9, 2009
I have to prepare invoices daily basis..i have to write name in attached sheet i.e cell D7 and Operator name in G13..some time my boss catch my mistake that this operator is for any other company and some time he catchs that this company is for any other operator..
I have a list as there..kindly advise me if my operator is not equal to my company or my company is not equal to my operator as per my list in sheet 1 than a alert massenge should come there so that i would not continue typing till i correct it..
Is there any validation formula or any other advise..
View 9 Replies
View Related
Dec 3, 2013
existing workbook that has evolved over several years, there are bits of data spread all over the sheets and there are several sheets.
My question is. Is there a way to show/print/email an alert with a reminder message any time any of the formula cells gets changed, something like "Be aware a formula is being changed, make a note of the changes."
View 8 Replies
View Related
Jan 13, 2014
I entered an activex object command thing.. and now I'm not sure how to exit out of it.. it just keeps alerting errors messages like reference is not valid and other ones depending on what I type in the formula box.
I just want to remove the object, but I can't get past the error alerts.. they just keep coming every single time I click somewhere on the workbook trying to exit out of it.. so I'm not sure how to even get out of it.. I don't want to open up Task Manager to exit out of the entire program because I didn't save my workbook.
View 2 Replies
View Related
Jul 31, 2014
How to create a macro which would search through certain columns and post an alert/notification with the employee name (at the top of the column) and date (to the left of the column) if the cell value is less than 12.
View 2 Replies
View Related
Oct 3, 2009
If I already have lets say 90% on B9 and I try to enter 15% on D9 it wont allow me because of the total being over 100%, but how can I have an alert to say Please enter 10% or less.
Or
If I already have lets say 50% on B9 and I try to enter 20% on D9 and I try to enter 50% F9 it wont allow me because of the total being over 100%, but how can I have an alert to say Please enter 70% or less (the sum of B9+D9).
Can this be done using VBA?
I've attached the file that has the data validation.
View 11 Replies
View Related
Aug 30, 2012
I have the below VBA code which does not seem to be working. I want to have an email alert as soon as some Excel is saved. THis is the code I am using. Office 2007 is used, I have Enable all macros under trust centre settings.
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) Dim OutLook As Object Dim OutMail As Object Const SendTo As String = "ab@xyz.com" Set OutLook = CreateObject("Outlook.Application") OutLook.Session.Logon Set OutMail = OutLook.CreateItem(0) With OutMail .To = SendTo .Subject = ThisWorkbook.Name & " is updated" .Body = " Needs your attention!" .Send End With Set OutMail = Nothing Set OutLook = NothingEnd Sub
View 7 Replies
View Related
Jun 18, 2014
Is there any way to get Excel to disallow you to enter in unique values into the same column? Like I know you can search for and delete duplicates, but I am wanting to get excel to disallow duplicates from being entered and/or give me an alert that what I just entered is a duplicate.
View 4 Replies
View Related
May 18, 2007
I have a worksheet with various information contained in each row and using up to columns M. Each row represents a new product and new products/rows are added weekly. In columns H is the date which is formatted like "*14/03/2007" and displays as that.
What i want to do is when the 11 months have past since the date in the cell i would like the cell colour to change to YELLOW. When 12 months have past then i need it to change to RED.
Example:
Date in cell is 18/05/2007
When date reaches 18/04/2008 i want the cell to change to YELLOW
When date reaches 18/05/2008 i want the cell to change to RED
I would like the code to apply to all cells in column J.
View 9 Replies
View Related