Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Find, Offset, Enter Number

I need some code that will go through an entire column and
find either of two names (Bob or Joe), go two columns over
(same row), and enter the number 9.

It would be nice if it could do this for all the
worksheets as the name appears in the same column in each
sheet.



TIA!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Find, Offset, Enter Number

something like this for the your range
for each ws in worksheets
ws.select ' test without this line first
for each c in range("b2:b200")
if ucase(c)="BOB" or ucase(c)="JOE" then c.offset(,2)=9
next
next
--
Don Guillett
SalesAid Software

"BUBBA" wrote in message
...
I need some code that will go through an entire column and
find either of two names (Bob or Joe), go two columns over
(same row), and enter the number 9.

It would be nice if it could do this for all the
worksheets as the name appears in the same column in each
sheet.



TIA!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Find, Offset, Enter Number

This might get you started:

Range("A:A").Find("Joe", , , xlWhole).Offset(0, 2).Value = 9

Alan Beban

BUBBA wrote:
I need some code that will go through an entire column and
find either of two names (Bob or Joe), go two columns over
(same row), and enter the number 9.

It would be nice if it could do this for all the
worksheets as the name appears in the same column in each
sheet.



TIA!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why am I getting ### when I enter an accting number and hit enter CC Mac New Users to Excel 1 December 15th 08 09:14 PM
Use of OFFSET and LOOKUP to find a value in a table Matt G Excel Discussion (Misc queries) 6 August 26th 08 11:53 AM
find max value in column and return offset of that value deborah Excel Discussion (Misc queries) 2 March 20th 07 03:48 PM
Find then offset. Pete Excel Worksheet Functions 6 September 13th 06 10:37 PM
Formula to find last value in a range & then offset [email protected] Excel Worksheet Functions 4 July 28th 06 05:54 PM


All times are GMT +1. The time now is 09:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"