Excel 2007 :: How To Delete 655000 Lines Of Data

Sep 21, 2012

I have a public/shared Excel 2007 workbook on our network and someone colored an entire column yellow. When that happened, it increased the number of rows to over 655,000. I didn't know that was posible but they are there... The thing moves very slowly now and when I try to delete (45,000 lines at a time), I either get a error window telling me I don't have resources to perform the operation, or I do smaller chucks and after 30 minutes deleting lines, it will not save.

I would rather not have to recreate the whole workbook if I can delete the lines on this one page.

View 9 Replies


ADVERTISEMENT

Excel 2007 :: Consolidating Data From Multiple Lines Of Sheet

Jul 17, 2012

I've seen some examples here and I think I understand the consolidation function. However, my query has the added level of needing to consolidate each member:

I have a table of data that looks like this:

SURNAME
NINO
CODE
NO OF UNITS

Smith
AB123456C
8AIA
1986.4805

[Code] .........

There are a number of clients that have multiple investments that are shown by an alpha numeric code. I need to consolidate the number of units for each member in to one line. Ideally the output would look like this:

SURNAME
NINO
CODE
NO OF UNITS

Smith
AB123456C
8AIA
2278.4058

[Code] ...........

View 9 Replies View Related

Excel 2007 :: Macro To Delete And Categorize Certain Data

Jan 10, 2012

What i have is a workbook that can have multiple sheets. Sheet 2,3,4 (if there are) are a continuation of sheet 1. First 2 rows of sheet 1 are headers and the last row of the last sheet (can be 2,3, 4....) is a footer. There are 14 columns (A-N) in each sheet. Col "N" has set status and col I has set names.

What i am looking for is a macro that can perform the following actions in the the set order:
1) deletes all rows where status in col N is "closed"
2) delete all rows where name in Col I is "Many"
3) if there are multiple sheets copy all data in 1 sheet once above 2 are deleted
4) I want to update cell A2, C2, I2, M2 & N2 with Hostel, Direction,Name,Flight & Status respectively
5) Create a pivot table with all data (Col A-N & Row 2 to last) in a new sheet and call it Summary - Pivot
I can then manually select how the pivot will look

Currently i am going through all sheets manually and filtering data. Using excel 2007

View 9 Replies View Related

Excel 2007 :: Move Data From Multiple Rows To One And Delete?

May 2, 2012

I'm working in Excel 2007 and need to move data from multiple rows to a single row if the ID matches.Below is sample data I would be working with. I want to move data from columns F-U to the right of the original data in the row above it. I would also like to delete the rows that had data moved.

GIDSurnameNameEmployee Number OriginalDate of birthGranting ARE
Employing ARECountry Employing ARECHCM Supplier IDVehicle
Investmt. shares / Awards at termination dateMatching Shares
at termination dateTermination

[Code]....

View 3 Replies View Related

Excel 2007 :: Macro To Delete All Data Before Pasting In New Stuff

Nov 25, 2013

I am using Excel 2007 and have a simple enough macro to paste data in to another sheet - simple is what I do best.

Sub Macro1()
'
' Macro1 Macro
With Sheets("data")
.Range("B3").PasteSpecial xlPasteAll

End With
End Sub

I am wanting to change this so that before it pastes any data into B3 it will delete all data from B3:AE22.

I have had a look around and found plenty to delete full rows or worksheets but not just to delete the data in those cells.

View 8 Replies View Related

Excel 2007 :: Make Connector Lines Invisible In Some Columns

Feb 3, 2012

Using Excel 2007.

I have some connector lines that cross over tables in Columns G:K that are connecting tables in $D to tables in $M

How can I make the part of the connector line in $G:$K invisible?

something like:

Code:
Sub FormatConnector
Dim oConnector as Shape
With oConnector
If .Connector Or .Type = msoLine
If .Connector In Columns($G:$K) Then
.Connector.Segment.Visible = False
End If
End If
End with
End sub

View 1 Replies View Related

Excel 2007 :: Multiple Lines In One Cell To Multiple Cells?

Mar 24, 2012

I have a column of cells with Customer info and address in each row, that I need to move into multiple columns. ie Cust name, acct #,address, city,state, zip the problem is ALL of the info for each customer is in ONE cell.To be clear, cell B1 has complete name address etc for one customer, B2 has the info for another, B3... on and on. To complicate matters as in the example, there is not a pattern in the lines. the first example shows the info beginning on the 2nd line of the cell, but the 2nd example shows info in the first line. I have tried the text to column fixed width. Didn't work because names and addresses are of varying lengths. Then I tried delimited, but there isn't a common separation between different data. I am using excel 2007. FYI I did go through many many threads and found some that were close to my problem but not close enough to work.

"
JOES TOWING SERVICE [0123451]
123 STREET

CALEDONIA FL 12345
"
"BUBBA / SHOP
ACCURATE AUTO SUPPLY INC [0234567]
21234 HYDRAULIC DR

LOCKWOOD OR 45678
"

View 7 Replies View Related

Excel 2007 :: Delete Red Rows Only

Aug 13, 2013

I have a large file with a bunch of color coding and need to delete my red rows only.

View 3 Replies View Related

Excel 2007 :: Cannot Delete Column By Right Clicking

Dec 3, 2013

In any open (new or existing) workbook (Excel 2007), I cannot delete a column by right clicking the column header and highlighting the entire column. The "delete" word is greyed out and not selectable. I CAN however still delete a column by going to the "Cells" toolbar, then "Delete" pulldown menu, then "Delete Sheet Columns". Right clicking the column header is much simpler and easier.

BTW, I can still delete rows by both methods of right clicking on the row header and by going to the Cells toolbar.

View 5 Replies View Related

Excel 2007 :: Delete Sheet Greyed Out

Jan 13, 2009

I am using excel 2007 and when I right click on the worksheet tab, delete is greyed out. My workbook/sheet is not shared. I also had the problem owith row and columns. CommandBars("row").Reset sorted that out but I can't seem to sot out the tab issue.

View 6 Replies View Related

Excel 2007 :: How To Use Or Delete A Table (ListObject)

Jan 11, 2012

I am using Excel 2007 and I created a table (i.e., listobject) using the macro recorder as follows:

Code:
ActiveSheet.ListObjects.Add(xlSrcRange, Range("$A$3:$J$50"), , xlYes).Name = "MyData"
Questions:

1. How do I delete this table via VBA?

2. How would I check to see if this table already exists so it follows this logic:

If "table does not exists" then
'create it (using the line of code above)
End If

View 3 Replies View Related

Excel 2007 :: Delete Sheet On A Shared Workbook

Oct 29, 2013

I have a file that has an original file format .xls

I saved as .xlsx (I am using Excel 2007) with a different name so I could make changes to the new file without changing the original.

That turn off compatibility mode.... but it is still "shared". While it is shared I cannot delete a sheet. In fact, I really don't even want it to be shared. If the file is open, and someone else opens it, I want it to open as "read only". I cannot uncheck the "Allow changes by more than one user at the same time. This also allows workbook merging." checkbox because it is greyed out.

View 3 Replies View Related

Excel 2007 :: Need To Automate Find / Delete Process

Jan 9, 2014

I have two spreadsheets. one contains a master list of computer names. the other contains a list of computer names to be removed from the master list (exception list).

I need to go through the master list and remove any computer names that are on the exception list- for example, if 'computer1' is in the exception list, i have to find and remove 'computer1' from the master list.

The exception list is quite long, and I want to automate this process if possible. not sure how to achieve this.

I'm using Excel 2007 Standard.

View 4 Replies View Related

Excel 2007 :: Find And Delete Single Character?

Jan 23, 2014

Following the tips doesn't allow to remove a character.

I exported email addresses from Outlook and they have the following character ' in front of the email address.

Using Excel 2007.. it says :"check if your search formatting and criteria are defined correctly. If you are sure that matching data exists in this workbook, it may be on a protected worksheet. Excel cannot replace data on a protected worksheet"

So I made a new file, and copied and pasted the cells into the new spreadsheet.. same message.

View 4 Replies View Related

Excel 2007 :: Delete ALL Connections In Workbook Without Having To Specify Names

Oct 20, 2008

The following code deletes a specific connection in a workbook:-

ActiveWorkbook.Connections("text123").Delete

How can I code this so that I can delete ALL connections in a workbook without having to specify the names (as these will always be different).

View 3 Replies View Related

Excel 2007 :: Delete Rows If Value Is Found In Column S

Jan 23, 2012

I'm using this code to find values of "FEP MHS" or "LSD MHS" in column S and if column S containes either of these values it deletes the entire row from the spreadsheet. I need this to work on a spreadsheet that runs on a daily basis and each day it contains a different number of rows. I have used this code to successfully delete most rows that contain these values in Column S but for some reason it does not delete all the rows, typically leaving 6 - 7 rows that contain these values. I'm using Excel 2007 I need code that finds the last row used and deletes the entire row if these values are present.

Dim CelRSLHMHSD As Range, RngRSLHMHSD As Range, iRSLHMHSD As Long
Set RngRSLHMHSD = Columns("S").SpecialCells(xlConstants, xlTextValues)
For iRSLHMHSD = RngRSLHMHSD.Count To 1 Step -1
If RngRSLHMHSD(iRSLHMHSD).Value = "FEP MHS" _
Or RngRSLHMHSD(iRSLHMHSD).Value = "LSD MHS" _
Then RngRSLHMHSD(iRSLHMHSD).EntireRow.Delete
Next iRSLHMHSD

View 1 Replies View Related

Excel 2007 :: Delete Column If Cell Equals To Zero

Aug 6, 2012

HTML Code:
Sub DeleteEmptyColumns2()
Dim Cell As Range
For Each Cell In Range("4:4")
If Cell = "0" Then
Cell.EntireColumn.Delete
End If
Next Cell
End Sub

I am attempting to remove columns in my table of data, using the above code seems to remove some them but not all, is this the best way to loop through a range?

View 8 Replies View Related

Excel 2007 :: Find Certain Named Columns And Delete Them

Jun 14, 2013

Macro code to find several column names in row 1 (which can be anywhere in the work sheet) and delete them e.g. date, month, code, amount etc.......

Excel version 2007

View 4 Replies View Related

Excel 2007 :: Method Delete Of Object Range Failed

Oct 3, 2011

I have written a sub with the purpose of finding rows based on a critieria, copying the rows to another worksheet and deleting the original row.

The code:

Code:
Sub MoveToIgangvaerende()
'
' Flytter opgaven til sheetet Igangværende projekter
'
Dim i, j, Index As Integer
Forfra:
For i = -1 To 1000
If Sheets("Pipeline").Cells(3 + i, 20) = "Ja" Or Sheets("Pipeline").Cells(3 + i, 20) = "ja" Then

[Code] ......

I get the error message "Method 'Delete' of object 'Range' failed" at the line "Sheets("Pipeline").Cells(3 + i, 18).EntireRow.Delete".

The sub has previously worked perfectly fine.

View 4 Replies View Related

Excel 2007 :: (Cannot Complete Task With Available Resources) When Trying To Delete Rows

Jul 11, 2012

I have VBA code that attempts to delete an entire row from my worksheet:

Code:
Cells(3,1).Select
Selection.EntireRow.Delete

This works fine on small data sets, but on larger data sets it gives me the error message, "Excel cannot complete this task with available resources". This happens even when I try to do the deletion manually (without VBA code). Clearly, the code itself is not the problem.

My document has about 250,000 rows and 2,500 columns. While this is big, it is significantly smaller than Excel's documented limit of 1,048,576 rows and 16,384 columns.

I am using Excel 2007. My computer has 2GB of RAM but even when I try it on a computer which has 8GB of RAM it gives me the same error. If I "ClearContents" instead of "Delete" it works fine. For my purposes, however, deletion is entirely necessary.

View 9 Replies View Related

Excel 2007 :: Search Worksheets And Delete Entire Row When Duplicates Found?

Jul 17, 2013

I have a excel 2007 workbook that has 5 sheets "MASTER" , "RED" , "WHITE", "GOLD" & "BLUE". There are 7 columns in each sheet and the master has about 8,000 rows . In column D of each sheet there is a unique number (approx. 8 - 10 digits ) that I would like to at the press of a command button search through sheets "RED" "WHITE" "GOLD" & "BLUE" against the unique numbers in the "MASTER" sheet and if there any duplicates numbers delete the entire row but leave all the data in the master sheet.

View 2 Replies View Related

Excel 2007 :: VBA Code To Delete Rows Based On Text Starting Content

Oct 25, 2013

Using excel 2007. I am interested in writing a VBA code to delete rows based on the text starting content. I would like to delete rows with cells that do NOT start with an "S" or "SA"

EX:

05S0128
06S0112
05S2298
S25852
S36963
SA36185

I would only like to keep the last 3 lines.

View 3 Replies View Related

Delete 1 Line After Each 65 Lines

Jan 13, 2010

I have 2 columns in Excel wich havn't the same amount of lines.

One colom is 65.000 lines and the other one is 64.000

I am looking for a option to delete 1 line after each 65 lines.

Is this possible?

View 6 Replies View Related

Delete Lines From A Proceedure

Jan 16, 2009

I'm trying to remove a proceedure code or just line 3 if I could in the active workbook"ThisWorkbook" mod. However I'm having an issue with this code. how to remove all the code that is in "ThisWorkbook" mod? or just line 3 in that code. I have other mod that I want to keep. So I dont want to wipe out all the code from the workbook. Here is what I have but I get a sub or function not defined error.

View 2 Replies View Related

Delete Lines After A Bullet

Jul 7, 2009

I am attempting to write a macro that given a range of cells goes into each cell and deletes the text after the first bullet. An example of this would be:

The original cell contains: ....

View 9 Replies View Related

Macro Delete The Lines

Mar 16, 2008

I have 3 different sheets named:

USA
UK
DK

and 1 sheet named:

I would like to have a macro written that when runned will delete all data in line 2 to 1000 in the first three sheets and line 2 through 1500 in the compilation sheets

View 9 Replies View Related

Merge 2 Lines Then Delete

May 16, 2008

I have a complex worksheet that I have some duplicates that I want to merge the data together with Daily. The problem is now the process is getting too long due to the data size increasing. Access will not be a feasible solution at this time.

Column A would have the matching info.
The cells I want to copy are in columns AM:AP

Way it looks now:

A, [Col B:AL], AM, AN, AO, AP
Product#, [B:AL], New List, ID, Vendor, Rep
07256,[Data I want to leave],,,,
07256,[Blanks],HighRisk,32,59,1732

Way I want it to look:

A, [Col B:AL], AM, AN, AO, AP
Product#, [B:AL], New List, ID, Vendor, Rep
07256,[Data I want to leave],HighRisk,32,59,1732

Delete the second row after the data was merged and look for remaining matchs to do the same.

After it is completed have a message box indicating the number of records that this was done to.

View 9 Replies View Related

Delete Empty Lines In VBE

Dec 1, 2006

i'm trying to tweak Chip's code [url] to include the body of the module as well.
it works, but when there's blank lines in-between modules it'd show less of the modules.

is there a way to delete the empty line in VBE?
or did i miss something out in the code below?

Sub ListProcedures()

Dim VBCodeMod As CodeModule
Dim StartLine As Long
Dim Msg As String
Dim ProcName As String

Set VBCodeMod = ThisWorkbook.VBProject.VBComponents("MyModule").CodeModule
With VBCodeMod

View 3 Replies View Related

List Of Values - Delete Lines

Apr 17, 2014

I have a list of values. they are in C2:C25

I want to go dorn column B, starting at B26:B, and if the value in B equals any of the values in C2:C25 than delete that entire row(not just delete the word, because there are values in column C and D that I need gone with the C value).

View 5 Replies View Related

Delete Lines In A Multiple Cell?

Aug 5, 2014

TTHBF251863100

147943F00KNQ TTHBF251863100
REF VINS DU MONDE SA
O/RTT HBF251863100

I need a macro to transform my multiple lines cell as above ( 5 lines ) into a one line cell as below.

REF VINS DU MONDE SA

As the cells needing changing will always be different it would be good if I could have a macro working on the selected cells only, not a specified range.

View 1 Replies View Related







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