Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Columns Select issue

Status
Not open for further replies.

BigNorton

IS-IT--Management
Jun 22, 2011
5
US
A simple issue that I'm stuck on -- recording a macro -- select column A followed by doing a replace function. When the macro is ran the entire sheet is selected and any occurrence is changed in all columns.

Columns("A:A").Select
Selection.Replace What:="N", Replacement:="NOT FOUND", LookAt:=xlWhole _
, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False

Thanks
 


hi,

This changes only data in column A
Code:
Columns("A:A").Replace What:="N", Replacement:="NOT FOUND", LookAt:=xlWhole _
        , SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
        ReplaceFormat:=False

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top