Excel 2003 :: Use Find And Replace To Delete Word?

Dec 1, 2005

I'm looking to simply delete certain words that are in cells, without having to delete rows, columns or the entire cell. I can use 'find and replace' and replace the particular word with a space, but I really want to delete the word. I'm using both Excel 2003 and 2000.

View 4 Replies


ADVERTISEMENT

Excel 2003 :: Find And Replace Missing The Ability To Replace Values?

Feb 5, 2009

This problem has come up fairly frequently lately, and I'm not sure how to fix it, or if this is by design...but in Excel 2003 I can't seem to do a "Find and Replace" based on the value of a cell. I can do a find, based on cell value, but the moment I change to the replace tab, the "values" and "comments" are missing from the "look in" dropdown.

I've only noticed this when I'm trying to replace on a filtered list, so I'm not sure if that is part of the issue.

Perhaps an alternative way of arriving at the same goal. Basically I have a worksheet with a number of filtered columns. They are filtered just right, using custom filtering, and so I do not want to undo the filters. In some columns I have formulas that are returning #VALUE! errors. I'd like to replace all of these cells with NA.

View 6 Replies View Related

VBA - Find / Replace Excel Variable In Word

Apr 7, 2012

I have never used VBA in word before, so I am assuming I am making it more complicated than it needs to be. I have a macro that stores 20 excel values as variables, then opens up a word document. I want to replace values in word with my values in excel. I keep getting an error with the replace part. I do not want to use bookmarks or mail merge. MSWord is a reference in excel VBA.

Code that stores excel variables (Example: Var1=Data1 and Var2=Data2)...
'Opening up the correct word document
Dim WdApp As Object, WdDoc As Object
Set WdApp = CreateObject("Word.Application")
WdApp.documents.Open ThisWorkbook.Path & "" & Range("D1").Value & ".doc"
WdApp.Visible = True

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

View 9 Replies View Related

Excel 2003 :: Count How Many Times A Word Is In A Range / Word Can Be In Cell More Than Once

Feb 16, 2012

I need to count how many times the word Test is in the range B4:H9 with

Range N2 = Test the formula below works if Test is only in the cell once.

=COUNTIF($B$4:$H$9,"*" & N2 & "*")

But I have data in cells like below, this is all in one cell, so how would I have it count all the times test is in the range when some cells have test 2 or more times in a single cell?

5
Test
8am-2pm
Test
5pm-10pm

View 5 Replies View Related

Pick Word From Excel Search In MS Word And Replace All

Jan 4, 2012

I am trying to automate the below process:

1. I have a excel file with Japanese words in column A and their English equivalents in column B.

2. I am trying to create a Macro and assign it to a button. On pressing the button Macro should be able to:

3. open a form where I can enter location of a word file.

4. Macro should open the word file specified in (3).

5. Macro will pick up first Japanese word from excel file (Sheet 1 - A1)

6. Search for that word in Word file

7. Replace the Japanese words in Word file with their English equivalent from excel (B1)

8. Then it should search for second word (A2) and replace with its equivalent (B2) and so on till it reaches last filled cell in excel file column A.

After a lot of search I could find a code from net (Below), made a few changes, but it is not working.

========================================================
Private Sub OK_Click()
' Requires a reference to Microsoft Word xx.x Object Library
Dim sFile As String

[Code]....

View 1 Replies View Related

Replace Word In MS Word With Varable From MS Excel

May 1, 2009

I am in the middle of automating a process here at work, the program takes a word, "pencil" for example, from excel. It will then open up a word document with content already in it (premade template). The program will then find all instances of a string, "placepencilhere" for example, and will replace that instance with the string from excel.

Basically I want to be able to take a variable that has a stored string value from excel and use it to replace another variable in a word document.

I tried recording a replace (ctrl+f, replace tab) macro, copying the code, and inserting it into the excel vba code.. but I get a error message. Here is what I have:

---

View 11 Replies View Related

Find And Replace Whole Word?

Mar 31, 2014

Looking to build a simple find and replace with an added condition that it must match the whole word since some of my data appears as below:

abc.abc_no

I am trying to replace abc with alphabets and I need the result: alphabets.abc_no not alphabets.alphabets_no.

What do you think the best approach to this would be? All my data that I need converted is in one column (Column C) which are thousands of rows long and on another sheet I have a list of the conversions I need to do (about 150 - columns A and B) setup like:

A |B
abc|alphabets

View 1 Replies View Related

VBA Macro To Find And Replace In Word

Jul 22, 2009

The error is a Run-Time 450 (Too many arguments or invalid property assignment), when I click debug it highlights With Selection.Find

Sub TestTemplates()
Dim s1 As String
Dim s2 As String
Dim s3 As String
Dim appWD As Object
Set appWD = CreateObject("Word.Application")

Sheets("Sheet1").Activate
s1 = ActiveSheet.Range("Name")
s2 = ActiveSheet.Range("Add1")
s3 = ActiveSheet.Range("Add2")

appWD.Visible = True
appWD.Documents.Open Filename:="C:UsersRemy LabueDocumentsCareCore WorkTest Letter TemplatesTest Letter 1.DOCX"

Call DoFindReplace(FindText:="(1)", ReplaceText:=s1)...................

View 9 Replies View Related

Excel 2003 :: Copy Worksheet To Word Document

Mar 30, 2014

I'm trying to copy parts of a worksheet from excel 2003 to word 2003. I've found code that does this alright but I need to be able to re-size the the pasted data to fit the word document. Is there a way to set the properties of the word document like change it to landscape and move the margins etc? Even a simple "reduce the table size to fit the word document". I've included the code i've got already. This code will open up a word document and copy your cells into it but without any useful options. So its ok for a small group of cells.

View 1 Replies View Related

Excel 2003 :: Search Condition And Replace Program (VBA Coding)

Nov 12, 2011

I have two work sheets where I have data.

Sheet1 contain daily input table which as follows:

Code:
Namesalary Bonus Check
XX1000 2 FN
XY900 1 NA
YY1100 2 FN
ZY1500 3 DP
ZZ1250 2 FN
AA1050 2 NA
AZ 950 1 FN

Sheet2 have table where all the information is saved. So we can say this is database of sheet1. Which store every day information of sheet 1.

Code:
SALARY DATABASE
Name SalaryBonus

What I want to do is that ---it copy all the data which fullfile condition FN and move to the Sheet 2 which is salary database. Two important things to check is that. IF name already exists in the sheet 2 then it replace old info with the new one. Second thing is to sort the whole table(Salary database-sheet 2) according to A-Z (Name column). I use office 2003. I hope I provide all the information.

View 9 Replies View Related

Excel 2003 :: Macro To Copy Part Of Worksheet Into Word?

Nov 29, 2011

Creating a macro that updates and copies part of a worksheet in Excel 2003 and pastes it in MS Word. The sheet I have is a sheet that updates some prices etc and after it updates I usually select a square (part of the sheet), press CTRL+C to copy it and paste it as a picture (paste special ) in word. Is there a way to automate the process?

I am thinking a macro that updates the sheet, copies and pastes iit on word??

View 4 Replies View Related

Find Word And Delete Row?

May 8, 2014

I am trying to find the word ''New'' and then delete row.Here is my current code below...

[Code]....

My code works fine upuntil Loopwhile.

The reason for this, on this particular occasion there is only one line containing 'new' so the code has nothing to loop....

So I need to re write

[Code] ....

In order to account for the possibility only one row ft's the word 'New'

Also might be worth mentioning the word New could ft in amongst other data in the particular cell.

View 3 Replies View Related

Batch Find And Replace (Delete Row)?

Aug 11, 2014

I have an excel spreadsheet with a list of numbers in column A. These are all "random" numbers in that they don't follow an order, but they mean something elsewhere.

The rest of the columns have other information that is related to the number in the same row.

I have another list of random numbers which is much smaller than the original, but all of the numbers on the smaller list (which is in a different excel document but can easily be put in its own column) are in the larger list as well..

I want to compare the two lists, and if the number from the smaller list is found on the larger list, I want the entire row deleted and all the remaining cells shifted up. I do not want any blank rows between the data.

View 7 Replies View Related

Find A Word And Delete All Rows Above It

Dec 18, 2013

I get a report each week that has a bunch of unwanted header info. It used to be static and the macro just deleted the first 49 rows. I recently found out that the header format changed and it's been deleting crucial data.

I need something that will find the words "Medical Center" and delete all the rows above it, however many that may be...

View 4 Replies View Related

Find Particular Word And Delete Rows Macro

Aug 31, 2012

I am trying to get macro which will find word "Service" in sheet 1 and after that delete that row and below row.

View 1 Replies View Related

Macro To Find Word And Delete Group Of Cells?

Aug 1, 2014

I have an excel file, where there is a section "Additional Requirements". This section is repeated like 20-25 times in the sheet and has a group of merged cells below it to enter data as shown in the picture. Issue is that majority of these "Additional Requirements" are not filled by the user. Hence maybe only 3 or 4 are filled and I have to manually delete the rest. I tried the code below, but it doesn't do anything.Running the macro just jumps the cells slowly downwards the sheet. Maybe if the macro runs 10-15 times it reads the whole code and then moves on to the next row.8-1-2014 12-43-27 PM.png What I'm trying to achieve is:

1. for the macro to find "Additional Requirements"

2. Then check the Merged cell below it (thus the offset)

3. If this cell is blank, select this cell and the cell containing "Additional Requirements"

4. Delete entire rows of these cells/delete the selection (entirerow.delete). (I read somewhere to set a variable as selection and clear it, hence ive included in the unreadable code. This wasn't working either)

View 4 Replies View Related

2003 - Conditional Formatting: Find Cells That Have The Word "managment"

Jun 18, 2008

I am trying to use conditional formatting to find cells that have the word "managment" in the text. The problem I am having is that the cells may contain a paragraph and the word may be embedded in the paragraph. I need to either high the word or the paragraph. I can get it to work if only the word "management" is in the cell but not when I add other words to it. I have tried using *management* but this didn't work.

View 12 Replies View Related

Excel To Delete First Word In A Cell?

Sep 12, 2013

My text currently looks like:

"PEN228 PENICILLIN VK 250mg 28"

I need it to look like:

"PENICILLIN VK 250mg 28"

I searched the forum the last couple of days and got the following formula: =RIGHT(TRIM(E3),FIND("~",SUBSTITUTE(E3," ","~",LEN(TRIM(E3))-LEN(SUBSTITUTE(TRIM(E3)," ",""))))-1)

However that is leaving: "228 PENICILLIN VK 250mg 28". Unfortunately I need to get rid of all of the first word.

View 5 Replies View Related

Opening 2003 Files From Word 2003

Jan 8, 2010

how to write a code where i can open Excel2003 file from Word2003 and delete data from Sheet1 and then close the excel2003.

All this is done from Word file.

View 9 Replies View Related

Selecting MS Word 2003 Table From 2003

Feb 13, 2010

I can select a MS Word 2003 Table from my Excel 2003 macro? I keep getting Error 438 as per attached file for the line of

View 2 Replies View Related

Excel 2003 :: Data Validation - Disable Delete Key

Mar 31, 2010

I'm using Excel 2003

Cell D7 - data validation reads as such: It is a List and the source is I6:I7. I have In-Cell dropdown selected. Ignore Blank is not checked.

I now password protect the sheet and only D7 is unlocked. real simple, the person using it can only use D7 and select one of two in the drop down menu.

The problem is, if the user clicks on D7 and hits delete, the cell goes blank. How can I avoid this?

View 8 Replies View Related

Excel 2003 :: VB Code To Delete ALL Named Ranges

Mar 22, 2012

I have a spreadsheet, but it came from another file using the detach sheet method. It has therefore taken with it, all the named ranges that are now superfluous.

It seems a bit long-winded to delete these named ranges one by one manually. Would there be an easy to understand script that would delete them all, so I can start with a "clean sheet".

I'm using Excel 2003.

View 5 Replies View Related

Excel 2003 :: Macro To Delete Rows In A Table

May 19, 2013

a VBA problem I have and I do not know how to solve. I use Excel 2003.

I have a workbook with a table; all cells except the table area are locked so at users cannot add any data. The table is on D2: H?. The workbook is password protected (users can only "Select unlocked cells", "Format cells" and "Sort"), and for that reason there is a "Add Rows" macro button so they can add more rows if necessary. It works well.

There is also a "Delete Rows" button, but it does not work as I want it to do. If the table is for example on D2:H4, and I select a cell on row #3 (ex. D3, or E3, or H3) and click on the button it deletes row #3, if I click on the button again it deletes row #4, and if I click on the button again it also deletes row #5 and so on, but it should not do it because all rows below row #4 are locked and should not be deleted.

I found on the Internet a code that I modified, but I do not get it to work. Below are the two macros.

My original macro (it deletes even locked rows):

Sub DeleteRows()
'
ActiveSheet.Unprotect Password:="123"
'
Selection.EntireRow.Delete
'
ActiveSheet.Protect Password:="123", DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowFormattingCells:=True, AllowSorting:=True
End Sub

The macro found and modified (the original rows are commented):

Sub DelRows_2()
Dim rngDelete As Range
Do While rngDelete Is Nothing
On Error Resume Next

[Code]....

View 2 Replies View Related

Excel 2003 :: Delete Duplicates Based On Value In One Column

Jun 5, 2014

Excel 2003 - delete duplicates based on value in one coloumn.

very simple but how!i want the whole row deleted where there are duplicates in one column but ONLY the duplicates, so, if they're 3 duplicates in the column i want 2 deleted leaving 1 unique record.

View 4 Replies View Related

Find Replace Within Excel Formula

Jan 24, 2014

I need to replace A1*FX! with A1/FX! within thousands of formulas (and many variants of A1)

Unfortunately whenever I attempt this is deletes the A1 (or whatever cell is being referenced)

How to stop find replace doing this?

View 4 Replies View Related

Excel 2003 :: Userform - Ok Button To Delete Data When Clicked On In Combobox

May 8, 2012

I have a userform that has a combobox in it that also has an OK button and a Cancel Button. Need getting the combobox to pull in the correct list? The data for this list will be in cells A2 through A16. But not all 15 lines will always have data in them so I'd like to only show the ones with data. Then next issue i have is I would like the OK button on this userform to actually erase the data the user has clikced on in the combobox. It's a list of kids that the userform is asking which one needs to be deleted. So it might be the kid in cell A9. so when the user clicks on that kid in the combobox form a9 and hits ok I'd like to have all the kids below A9 move up one row.

Windows XP
excel 2003

View 6 Replies View Related

Excel 2003 :: Formula To Look At Name And Find Previous Name Above It

Mar 26, 2012

Excel 2003. I have a list of names in column A, dates in column B, I need the difference between dates for the people in column A, I am doing it now with the formula shown but I need a formula to put in column C that will look at the name in column A, for that row, and then find that name above it and give me the difference between the to dates in column B. So in the example below if I put the formula in C7 it would look at A6-A2 for harry and then give me the difference between B7 and B4, 6 days, if there is not a match return blank.

Excel 2003ABCD1NamesDateDays Between2tom2/8/123****3/2/124harry3/9/125tom3/10/1231=B5-B26tom3/12/122=B6-B57harry3/15/126=B7-B48****3/26/1224=B8-B3Sheet1

View 4 Replies View Related

Excel 2003 :: Find Second Number Set In Cell

Dec 3, 2012

Trying to isolate the second number in cell.

If I have 48X144X68 in J10, I need 144.

I tried:

=MID(J10,FIND("X",J10,2)+1,3) which works, but when a cell has 65X50X68, then I get 50X where I only want 50.

The numbers can vary in size (i.e., 1 to 5 digits) but always separated by an X or some letter.

Excel 2003

View 5 Replies View Related

Excel 2010 :: Find And Replace Dialog Box

Feb 15, 2012

I have Excel 2010, and a dual monitor setup, with the left monitor being the main one. I have my spreadsheets on the right monitor.

When I open a Find and Replace, the dialog box always goes to monitor #1 (left); I want it on monitor #2.

Is there a way to default it to the "right" monitor?

View 3 Replies View Related

Excel Script - Find And Replace Data

Oct 16, 2013

I am looking to make an excel script that can find and replace data.

Situation:
A--------B-----------C
Cat------Dog------Banana
Dog------Fish------Apple
Fish------Cat-------Orange

So the macro would look at the data in a cell in column B, then look at the adjacent cell in column C, and replace all instances of that data in column A with what if found in C. So the results would be:

A------------B-----------C
Orange------Dog------Banana
Banana------Fish------Apple
Apple--------Cat-------Orange

But that's not all, I would like it to not change cells in A that already have been changed once! (I'm trying this with changing the background colour)

I am at a complete loss and need to find and replace over 3000 items.

View 4 Replies View Related







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