Delete Does Not Erase Column

Mar 12, 2013

Why is it when I open a worksheet, or try to delete " extra" columns in a saved document, highlighting the column and going to Edit>Delete does not erase the column? Is there a "locked" function somewhere?

View 9 Replies


ADVERTISEMENT

Erase The Entire Row If Column J Is Equal To 1205

Jun 6, 2006

I am trying to do is erase the entire row if column J is equal to 1205. I have made an attempt which is shown below, but I am no where near a VBA programmer, yet.


Sub Softrak_Format()
Rows("1:2").Select
Selection.Delete Shift:=xlUp
Cells.Select
With Selection
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False........................

View 4 Replies View Related

Automatically Erase The First Two Entries

Mar 5, 2006

This Sheet contains over 120 000 rows of data.
One thing that is present in the data, that is very important, are
dates, which denote when an amendment to a users details have been
made, and therefore, some users have multiple entries.
I would like to be able to automatically delete all but the last update of each user. ie :

10/06/99 ; Fred Bloggs
31/02/01 ; Fred Bloggs
02/03/02 ; Fred Bloggs

I would like to be able to automatically erase the first two entries,
leaving only the last. Unfortunately, while I am familiar with
Formulas and charts and such, this falls outside of my level of
knowledge.

View 9 Replies View Related

Erase Statement Usage

Jan 20, 2010

basically im setting a range type variable to be the a column of data from a table that is on another sheet but in the same workbook. im wondering if im supposed to get rid of certain variables i have created...especially in an instance like this, where the variable seems to be more of a reference to the actual table data.

Dim curtzeNum As Range

Set curtzeNum = Worksheets("RawData").Range("Table3[Curtze_num]")

should there be an erase statement for these at the end of the sub?

View 9 Replies View Related

Macro To Erase File On A Directory

Mar 9, 2013

The code bellow allows me to save a copy of the invoice by way of doPDF using invoice number as the name of the pdf to be saved.

Code:

Else
Application.ActivePrinter = "doPDF v7 on DOP7:" 'Selects doPDF to genarate PDF file of invoice.
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= "E:LusaGenerated InvoicesINV" & Range("L17").Text & ".pdf", _

[Code]...

As there is the need to, should a quotation or an invoice be wrong, to change it. In other words I have code to cancel the invoice as bellow.

Code:

Dim sResponse As String
Dim rFound As Range
sResponse = InputBox("Enter record you want to change." & vbNewLine _& "ATTENTION!

This will change the current record number and will erase record data from saved records sheet.")

If sResponse = "" Then --cancelled or OK with no entry: do nothing or add message
Else
Set rFound = Sheet1.Columns("L").Find(What:=sResponse, LookIn:=xlValues,

[Code]...

The code above simply removes a line on sheet1 to which yet another macro retrieved some info from an invoice such as date, invoice, customer and total.

Now I just realized that when I change an invoice, I will be again when finished, creating another pdf file that already exists.

How can I have the second macro here changed so that it will go to ""E:LusaGenerated InvoicesINV" & Range("L17").Text & ".pdf", _" and delete this pdf file?

View 9 Replies View Related

Webding Ticks Erase Gridlines

May 11, 2007

I use webdings font with the letter 'a' to get a tick in excel but the it erases gridlines surrounding the cell i've ticked.

View 3 Replies View Related

Formula To Erase Names From One List When Entered Into Another?

Jul 8, 2014

I have a list of names in separate but connecting cells (list 1). I would like to use list 1 as a population from which to select and enter names into other cells (list 2). Is there a way that the names in list 1 would disappear from the available population when entered into list 2?

View 3 Replies View Related

Erase Unnecessary Line Breaks In The Cells

Oct 20, 2008

I want to erase all line breaks which I am not using from my work sheet. But still keeping the line breaks which has something written to it.

this as a example of one cell.

-------------------------------------------
- Example text number 1
- Example text number 2
- Example text number 3
- Example text number 4
- Example text number 5
---------------------------------------------

Using "Find & Replace" I got to replace the ones I want to erase with nothing, so its blank. Too bad the Excel doesn't replace the line breaks with it, so this is what I get.

-------------------------------------------
- Example text number 1
- Example text number 2

- Example text number 4

---------------------------------------------

The result which I want to have is:

-------------------------------------------
- Example text number 1
- Example text number 2
- Example text number 4
---------------------------------------------

I know about the Clean Function but that function eases all the line breaks from the cell, which I dont want to.

If not that whould mean that I have to delete the line breaks by hand for hundreds of cells.

View 7 Replies View Related

Delete Multiple Columns By Column Name No Criteria Need, Just Delete Them

Jun 24, 2009

I would like a macro to find the columns named "apple" and "peach" and delete them. These would always be in row 1 but would always be in different column letters which is why I want the macro to simply find these columns by their name and not by their column letter.

And yes, I do mean the entire column altogether, shifting entire columns to the left. Wipe it off the face of the earth

View 4 Replies View Related

Set Of Column Data Move To Different Column And Delete Unwanted Column VBA

May 29, 2014

I have set of data Pasted in 4th row, in the top row 44 columns values assigned i want move data from set of data to different column among these 44 columns

Like "Service Order ID" is 1 column in set of data ,it move to second column of top row

Some of column need to delete. (Service Order Type,Service Order Description,Created By,Status,Contact,Expected Delivery Date,

Creation Date,Priority,Net Value,Currency,External Reference,Reference Date)

I want Get output result in same sheet (Actual).

View 3 Replies View Related

Hide/Erase The "X" Close Button On UserForm

Oct 26, 2008

I would like to modify one of my UserForms so the close button [the "X" in the upper corner] will not be visible. [It does not matter if this must involve hiding the upper the title bar - or not - as long as the little "X" will vanish].

I would like to point out that I DO NOT want to disable the "X" fronm closing the form [that I know how to accomplish] I just want to get rid of it. I have been told to look for a good example in a file called: "NoCloseButton.zip", created by Stephen Bullen, at http://www.bmsltd.ie/Excel/Default.htm but had no success in finding the file.

View 5 Replies View Related

Find The Column Name Purple & Delete The Whole Column If There Are No Blank Cells

Mar 18, 2009

I'd like a macro that does 3 things..

1. Find the last row (cell) of data in the "Customer Number" column. This search should be by the name "Customer Number" rather than by column letter because the column that "Customer Number" will be in can change.

2. Find the column named "Purple" (also by name for same reason)

3. If the "Purple" column has no blank cells in those same number of rows as the "Customer Number" column, delete the whole "Purple" column.

View 11 Replies View Related

Delete Duplicate Rows Where Column A And Column B Combined Are Equal

Dec 8, 2009

I have a sheet where i want to delete duplicate rows where column A and column B combined are equal, i.e. range(Ax:Bx) where x is the current row. I am using the macro below but cant seem to get it working as I keep getting a type mismatch error and Im not sure why.

View 2 Replies View Related

Macro To Delete Numbers In Spreadsheet In One Column That Appear In Another Column Or Worksheet

Jan 20, 2013

How would you set up a macro to delete numbers in a spreadsheet in one column that appear in another column or worksheet?

In other words, if I have the numbers 1,2,3,4,5,6,7,8,9, 10 in one column and in the same column, or another column or worksheet I have the numbers 1,2,3,4,5 - I need a way to delete 1,2,3,4,5. I know how to delete duplicates via the advanced filter but I want to have the duplicate and original deleted.

View 3 Replies View Related

Find And Match The Data In Column In A With Column B And Delete Both

Mar 28, 2014

I need to find the data in the sheet SKU & match it to the data in import_215 column F if it matches then delete the entire row (see Attachment SKU3)

View 12 Replies View Related

Automatically Delete Column Once Date In That Column Expired

Jul 30, 2014

Have have a excel spreadsheets with 2 columns. One with the employees name and one with the date that their warning expires. I would like the employees name to be automatically removed after the date expires. How do I do this.

View 1 Replies View Related

Delete Column Based On Column Header

Apr 29, 2009

I have a spreadsheet with several columns (all column names are in row 1).

I have 2 of column names. Note that their actual column# might change so the macro would have to look for the column name and NOT the column position ...

View 11 Replies View Related

Delete Entire Row If Column A Matches Column D

Aug 18, 2009

Does anyone have a macro that will delete entire row if column a matches column d

View 6 Replies View Related

Erase 2 Blank Rows Every 37 Rows

May 30, 2008

I have 1006 records in an excel file and would like to erase 2 blank rows every 37 filled rows.

View 9 Replies View Related

Create Form To Output Data And Erase Form Once Data In Ouput

Sep 20, 2007

I am trying to create a form to use as a golf tracker. I basically have created a scorecard where I input the date, score, fairways in regulation, greens in regulation and putts. I want to be able to put that information just like if it was a scorecard and then have a button that says submit. Then that information is output into individual sheets (i.e. one for scores, one for fairways, one for greens and one for putts).

View 13 Replies View Related

Delete Values From Column A Specified In Column B

Feb 4, 2009

I'm about to start doing it manually, just wondering if there is a way to use functions in excel to do this automatically:

Here's my situation:

I have one column A, and it has 25 000 email addresses, 1 per each row, so 25 000 rows.

Then i have in another column ''B'' with 3000 email addresses.
I need to delete these 3000 email addresses from the master 25 000 list.
Is there a way to do it automaticaly?

I imagine if there was a way to set a script to delete values in Column A found in Column ''B''.

Least, I was going to try to copy the delete list and paste to master list, so I would end up duplicates of the emails that are to be deleted and they would appear highlighter with conditional highlighting.

View 9 Replies View Related

Delete Every Other Row In A Column

Dec 8, 2007

What would be the macro or other shortcut to delete every other row in a column? The rows I want to delete happen to be blank, but I don't want to delete EVERY blank row. If that is incredibly easier, I guess I could fairly quickly put something easily found in the few currently blank rows that I want to preserve later then go back and delete that type...

View 9 Replies View Related

Delete The Last Used Column

Mar 13, 2009

I have a large table of data, but it will always have some data in the last column that basically I want to remove. The last column is not always the same exact one, so something that looks from the end for the last used column then deletes the entirity of it. The attached file shows exactly what I'm after.

View 3 Replies View Related

Delete Column Which Has Less Than -5 And 0

Mar 28, 2013

Macro to delete the specific cell which contains less than -5 and 0.

View 2 Replies View Related

Delete Row If Zero In Column

Sep 23, 2008

I have a master list of employees, which is pulled from another workbook using a formula like this: ='S:PII ProductionP2 crew listscrew pII[1st shift PII staffing.xls]4310'!B9

If a position is currently empty, then the column (J) that lists the employee number will show a zero. I would like this spreadsheet to show only the positions which are currently filled. Is there an easy way to do this?

View 9 Replies View Related

VBA - Search Same Value In Another Column And Delete It?

Aug 30, 2012

I have 4 values in column A (Let's say A1:A4)

These values are also contained in column Q among/with many other values. I am looking for a script that will find these 4 values in column Q and delete them by shifting the cells up. I need something like:

Look A1, If the same value exist in Q column Then delete the same value cell in Q and shift cells up
Look A2, If the same value exist in Q column Then delete the same value cell in Q and shift cells up
Look A3, If the same value exist in Q column Then delete the same value cell in Q and shift cells up
Look A3, If the same value exist in Q column Then delete the same value cell in Q and shift cells up

View 2 Replies View Related

Delete Duplicates From A Column

Jun 19, 2013

I have a column with text values, I would like to remove all the duplicates. How can I do that??

View 4 Replies View Related

Vba For Delete Of Numbers In Column

Feb 15, 2009

I have attached a pdf of part of my data. I wish to delete those cells in column 2 containing values between 9044795 and 9372402; then have the column below move up (into the cell deleted). Its a large data set so doing it manually is not an option.
After doing this the data across the rows should line up. I have tried using the replace and filter functions but I can't make it work. I've tried some VBA but my knowledge is wanting.

View 4 Replies View Related

Delete 1st Digit In Column

Jan 17, 2014

I have column b filled with 17000 plus numbers formatted as text. I need an easy way to delete the first character on the left in each cell provided it is a zero.

View 2 Replies View Related

Delete Duplicates In Column D Only?

Jun 3, 2014

how to Delete Duplicates in Column D with a macro. It would search all of Column D and look for Duplicates and if it finds an exact value match it will delete one of the rows containing the duplicates. This is running in between a much longer macro which is the reason why I can't do it with conditional formatting.

View 12 Replies View Related







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