Hi David
Thank you very much for your quick response!  I have copied your code into 
my module and run it a few times, but nothing happens (apart from the loop 
bit doesn't go crazy like mine did!).  I selected worksheets A to Z and did 
a FindAll afterwards to check the result, but none of the data has 
changed.  Please revisit the code you very kindly provided, because I 
haven't got a clue whether or not there is anything vital missing!!!  
Thanks for your help and such quick response.

On Saturday, June 16, 2012 1:18:41 AM UTC+1, JLO wrote:

> Could really use some help with this.  I have worksheets A to Z.  I'm 
> searching for data the user has entered via an input box, then changing the 
> data in cells over to the right with the data the user enters via another 
> input box.  This works perfectly on active sheet.  What I need is for the 
> exact same thing to happen across worksheets A to Z (there being further 
> worksheets that don't get changed), so some sort of loop is needed.  I've 
> tried looping, but with disastrous results!! I'd really appreciate a 
> solution - I cribbed the example from elsewhere and tailored it, but I'm 
> stumped to get it to work across the other sheets.  Thanks in advance for 
> all your help!  Here's my code:
>  
> With ActiveSheet.Range("O:O")
>     Dim mySearch As String
>     Dim myReplaceValue
>     mySearch = InputBox("Enter the Box Number requiring relocation: ")
>     myReplaceValue = InputBox("What is the new location? ")
>     Set c = .Find(mySearch, LookIn:=xlValues)
>     If Not c Is Nothing Then
>         firstaddress = c.Address
>         Do
>             c.Offset(, 4) = myReplaceValue
>             Set c = .FindNext(c)
>         Loop While Not c Is Nothing And c.Address <> firstaddress
>     End If
> End With
>

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com

Reply via email to