Deleting Cells With Userform

Dec 13, 2006

i have worksheet with peoples details in it... i have a userform with a combobox and a delete command button in it with the persons name in the combobox... and i cannot figure out how to delete the persons details with the combo box...

View 9 Replies


ADVERTISEMENT

Deleting A Workbook From A Userform Vba

Feb 13, 2007

How is it possible to delete a workbook from a userform in an open workbook?

View 6 Replies View Related

Not Deleting Any Cells

Aug 15, 2007

The loop cycles through my sheet correctly but wont delete any cells.

View 10 Replies View Related

Deleting Visible Cells?

Apr 30, 2014

I have a data in which I have inserted a table with headers.

I then filter the type of data I want removed from the table using the drop down

Then goto special, visible cells only, press delete.

Now, the data is gone, but when I select all again to pull up the entire table, the data is gone, but rows are still there. So now I have tons of empty rows in between the rows of needed data. Any way of removing the rows in between as well as the data?

View 4 Replies View Related

Number Cells Deleting 0s

Jul 7, 2014

I need to store some numbers, all of which are prefixed by four or five zeros. When I format the cells as number, the zeros are erased. So, 0000012345 becomes 12345. The zeros are preserved when I store them as text, but I cannot do the functions that I need to do with the cells formatted as text.

How I can preserve the zeros in number format?

View 2 Replies View Related

Deleting The Name For A Group Of Cells

Feb 3, 2009

When you highlight a group of cells and give them a reference name- that name seems to be permanent. How do you delete one or add cells to the reference? Example attached book1.xls Cells A1-B3 are named "TheGroup".

View 2 Replies View Related

Deleting Specified Number Of Cells Using If

Mar 29, 2009

I have a column with "1" and "0". I'd like to have something like, if the value in a cell within the column is "0", then delete the 4 cells previous to the cell that contained "0" within the row.

Instead of deleting, the values can also be replaced with anything e.g., zero or n/a etc.

View 4 Replies View Related

Deleting And Inserting Cells

Apr 14, 2009

The delete function has disappeared from my EDIT menu in excel. Delete and Insert has also disappeared when I right Click on the spreadsheet.

View 11 Replies View Related

Deleting Empty Cells ...?

Sep 22, 2007

Is there a way to delete empty cells, without having to do each one individually. I have 10,000 numbers with about 500 empty cells. I did a search, but found nothing...

View 9 Replies View Related

Deleting Rows With Cells Containing EL Or LE

Sep 1, 2008

I am trying to a method to delete rows that contain EL or LE in a specific cell in a set column as this will reduce my file down by nearly a third. Currently by doing it using a autofilter it kills my computer as there is so much data. Is there an easy way to reduce this?

Trade ID456465ELColumn B456456LE Column B8454321LEColumn B456456ELColumn B5464564LColumn B4564546LEColumn B

View 9 Replies View Related

Deleting Range Of Cells Using VBA

Jun 12, 2009

I need to have my macro select a certain range of cells with a specific product code and delete them. What would be the code for it (product code 107). Here is what i have so far:

Workbooks.Open Filename:=fNameAndPath, UpdateLinks:=1
ActiveWorkbook.Save
ActiveWorkbook.SaveAs Filename:=myStrPath1 & myStrPath2 & myFile3 & myExt, FileFormat:=xlNormal, CreateBackup:=False
Windows(myFile3).Activate
Cells.Select.Range ("A78:K153")
Selection.Delete
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Range("A1").Select
ActiveWorkbook.Save
ActiveWorkbook.SaveAs Filename:=myStrPath1 & myStrPath4 & myFile4 & myExt2, FileFormat:=xlCSV, CreateBackup:=False

View 9 Replies View Related

Exception - Deleting Only Certain Cells

Feb 27, 2007

I am trying to write a macro that looks at columns C-I in row 6, to check if the value is G, if it is then I want it to delete C5,6,7 & 8 and so on along to coumn I. So all that I am left with at the end of the macro are the values that weren't green without any blank gaps in the columns. I started using the following

If C6 = G Then
Range("C5:C8").Select
Selection.Delete Shift:=xlToLeft
End If

And using that same code for D6, E6 etc etc, but obviously, when it deletes the cells it shifts them left so the columns change values, so if C6 is equal to G then it deletes it but then what was D6 becomes C6.

View 2 Replies View Related

Deleting Cells With Certain Values

Jun 29, 2007

I know this is an easy question....what syntax would you use if you want a macro to search Column A for every cell with specific text, and then clear that cell? I can't seem to get the syntax right to get it to do what I want.

View 2 Replies View Related

Deleting Entire Row That Has Cells With Certain Strings?

Mar 16, 2013

I am trying to delete entire row that has certain text, let say "hi". I was able to delete cells with exact word "hi", but was not able to delete cells that have texts other than "hi". ex) "hi myname." Below is my vba code, and I keep getting run-time error and cannot execute the code.

VB:
Sub HiDelete()
Dim srchRng As Range
Set srchRng = ActiveSheet.Range("g:g")
For i = srchRng.Rows.Count To 1 Step -1
If worksheefunction.Search("hi", Cells(i, 7)) > 0 Then Rows(i).Delete
Next i
End Sub

View 3 Replies View Related

Dictionary - Deleting Cells With Some Conditions

Jul 13, 2013

I have a VBA code which checks the value of two cells in "Sheet2", and when these values are in the fourth column of "Sheet4", then dictionary is saved and after that VBA delete Entire Rows in "Sheet4" which consists these values.

Please find the code below:

VB:
Sub dictionary1()
Application.ScreenUpdating = False

Dim dico1 As Scripting.Dictionary
Set dico1 = New Dictionary

[Code] .....

Now I wonder how to add more conditions like for example: "Delete all rows in "Sheet4" which have for instance in the 6th column text "Hello" AND which have in the 7th column value greater than 10". How can I change the existing code?

This is of course just an example, but the underlying question is how can I add to these dictionaries more conditions. Of course, we can still use "Sheet2" to add some value which we want dictionary to store.

I want to use for this only dictionaries because spreadsheet is large and filtering doesn't work at all...

View 7 Replies View Related

Use If / Then Statement - Deleting Range Of Cells

Jun 11, 2014

I have a sheet with thousands of rows and 45 columns and I need to delete a range of cells (G:Y) if the cell in column V = the cell in column X, and I need to do this by row. I think an if/then statement would work.

View 4 Replies View Related

Highlighting Or Deleting Specific Cells

May 16, 2009

I have Column A with 380 cells filled in with numbers (A1-A380) i.e. numbers like..456758, 567848 etc etc

Column B has a subset of those numbers, maybe 80-90 or so (B1-B90).

What I want to do is either highlight the numbers in Column A that also appear in Column B in yellow, OR delete them from Column A altogether

View 8 Replies View Related

Deleting Extra Space For A Lot Of Cells

Jul 10, 2013

I just have a grid with a bunch of numbers listed and they all have one extra space at the end of the number. I have another tab with the same numbers but they do not have that extra space. I am using a vlookup formula and it is not recognizing the numbers because of the extra space. Is there some way to get rid of the extra space with a formula instead of going through job by job?

View 5 Replies View Related

Protect Cells But Allow Row And Column Deleting?

Nov 15, 2013

Can I protect cells so that people can't change them, but at the same time they are able to delete rows and columns?

If I remove the locking and use hide only then the cell why go empty if someone double cliks it.

View 8 Replies View Related

Deleting Content Of Unlocked Cells?

Mar 21, 2014

I have a spreadsheet that has mostly locked cells but randomly placed unlocked cells.

The sheet is completed, often saved and printed. We then go back into it and use it for another customer calculation and need to ensure all previous entries are removed. With the locked cells you can't simply highlight an area to clear so I am wondering if there is a way to clear the unlocked cells in one step other than entering on each on to clear.

Would there be any way that if we cleared the first cell the others would clear?

View 4 Replies View Related

Looping Through And Deleting Rows If Cells Contain A Value

Apr 8, 2014

I have a normally easy task that is causing me some grief. In column f of my data I either have a number or this "____________". My goal is to delete the entire row if that line is present but my code is not finding that value in my range.

I am wondering is this some format value or something, but it shows up in the formula line as a line. Doesn't appear to be an underline, but I could be wrong. Below is my code.

[Code] ........

View 9 Replies View Related

Deleting Comments In Blank Cells

May 6, 2009

Is there a way to delete comments in a selected range of blank cells?

View 7 Replies View Related

Deleting Parts Of Text In Cells

Dec 8, 2011

I'm developing a fixture list (involving 26,000 individual fixtures) I'm trying to come up with a Macro which will enable me to delete part of each cell containing the two team reference numbers and the match number, and paste it in another column. I'd like to do this for all 26,000 fixtures.

In case you didn't understand that too well. For example, with the cell value of '1v2-54', I'd like to get rid of the '-54' and put it in another cell.

But the key thing is, using this principle, I'd like all 26,000 fixtures to be done this way. Obviously I'm not going to do it by hand.

As you can see from the screenshot, the pattern of how the column goes:

View 2 Replies View Related

Deleting Cells With Keyword Macro?

Jul 23, 2014

So I have data that I'm importing in rows 1,2 and 3. The first row has the product type, then rows 2 and 3 have additional info pertaining to that product. I was wondering how I would write a macro that could identify entries in the first row that equal a particular product, and remove those cells, along with its respective info in rows 2 and 3. Ideally, I could just push a button, and a particular product along with all it's info would disappear from my imported table.

View 4 Replies View Related

Deleting Duplicate Rows :: Compare 2 Cells Per Row

Sep 22, 2008

I have a spreadsheet that I need to delete duplicate rows in. However, in order to determine if a row is a duplicate I need to check 2 cells per row. In the attached file you will see that each row has 4 cells. I need to compare the cells in columns B and C with the B and C cells of the Row beneath. If the B and C cells match then it is considered a duplicate and one of the rows needs to be deleted. Also, there may be multiple duplicate rows.

For an example see rows 17, 18 and 19. I only need 1 row to remain.

I am looking for a vb script that would analyze a file with thousands of rows and delete the duplicates.

View 12 Replies View Related

Deleting Cells Based On Font Color

Sep 11, 2009

I am trying to delete certain cells within a range of data (A13:E29) that have white font or #N/A's. The only information I need is the black data. I have to manually go and clear these cells for many different ranges. I'd like to incorporate a macro that analyzes the range first to delete the values that are white font or #N/A.

View 4 Replies View Related

Inserting / Deleting Cells For Additional Calculation

Jan 25, 2012

I have a rather expansive spreadsheet with inventory statistics and want to insert some cells for an additional calculation and it will not let me add or delete cells. when i select the range to insert the cell my only choices are insert/delete rows.

View 2 Replies View Related

Deleting Rows That Have Dependent Cells. Prevent !#REF Value

Oct 27, 2007

Deleting rows that have dependent cells.

I have one sheet that uses a very simple formula for copying certain values from one cell to another sheet “=VALUE(Sheet1!B5)”.

My problem is that rows have to be deleted in sheet1 as the information eventually becomes expired and the following is displayed in my cell in
sheet 2 “=VALUE (Sheet1!#REF!)” Is there a work round this, to prevent the formula showing a #REF! Value.

Row 5 is replaced and the same formula has to be re-entered. Excel 97 used in our office unfortunately.

View 10 Replies View Related

Deleting Duplicate Cells (not Entire Rows)

Dec 17, 2007

I have a long list (over 1000 lines) of numbers, some of which are duplicated. Up to now I have been sorting them, adding in a simple check column to see if the number is a duplicate of the one below, and then manually deleting this cell.

Is there a better way to do this using VBA? The only way I have managed to find is by deleting the entire row, but I cannot do this as I have additional data to the right that I need to keep.

I also cannot install any add-ons as this on a work computer.

View 9 Replies View Related

VBA Code For Deleting Columns With 0 Value In Specific Cells

Oct 24, 2008

I am trying to write a VBA code in excel to delete any columns when a cell in that particular column = 0 (zero). That cell would start at B19 and subsequently follow to C19, D19 and so on.

View 9 Replies View Related







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