Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Excel Macro Delete Record
Name: Flaming Date: September 2, 2004 at 06:59:22 Pacific OS: WIN XP SP1 CPU/Ram: P4 3.0 / 1G R
Comment:
I'll explain what I'm trying to do using a simple example.
Let's say I have a 100 records in my excel sheet. In, for example, 10 of those records is a specific word. Let's say "Dean". What I would like is that every record (not just the cell) that contains the word "Dean" is deleted using a Marco. So that would leave me with only 90 records as end result.
Name: dtech10 Date: September 5, 2004 at 10:26:02 Pacific
Reply:
Hi Are these records in one column and do you want to delete the records and leave them blank or move the other records up, so there is no blanks rows.
0
Response Number 2
Name: Flaming Date: September 16, 2004 at 02:50:41 Pacific
Reply:
No in different column's and indeed I want to shift the cells up so there are no blank rows.
0
Response Number 3
Name: dtech10 Date: September 17, 2004 at 06:57:22 Pacific
Reply:
Hi Im no expert with Excel, but will this help Just select all the cells and run the macro. Try it on a dummy spreadsheet first, so as not to upset your records. Hope this helps ----------- Option Explicit ' Delete "Dean" from Selected Range.
Sub DelDeans() Dim Row As Integer Dim Max As Integer Dim Record As Range
Max = Selection.Count Set Record = Selection
Row = 1 Do If InStr(LCase$(Record.Cells(Row)), "dean") Then Record.Cells(Row).EntireRow.Delete End If Row = Row + 1 Loop Until Row > Max End Sub
Summary: Hi, I'm not too familiar with creating macros in Excel, the usual "record macro" normally works for me and since I'm sure I won't understand the. underlying concept anyway, I usually don't bother to l...
Summary: HI, Having this problem. Does anyone knows how to read latest updated file from excel macro. eg. File1 reads formula from FM03 and if I add FM04(which is the latest), I want File1 to read the latest ...