Wrox Programmer Forums
BOOK: Excel VBA 24-Hour Trainer
This is the forum to discuss the Wrox book Excel VBA 24-Hour Trainer by Tom Urtis; ISBN: 978-0-470-89069-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Excel VBA 24-Hour Trainer section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 12th, 2012, 02:50 AM
Registered User
Join Date: Mar 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help w/ VBA

Hey guys,

I have this code:

Cells.Replace What:="Order", Replacement:="Lead", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _

If (Cells(10, 7) = "Y") Then

given the situation above, If its yes then it will search the entire workbook let say around 5 sheets to replace all ORDER from LEAD.

May I please know how to properly code it.


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA to read VBA PepperMill Access VBA 4 February 4th, 2015 02:52 AM
Help in vba gerry66 Access VBA 1 February 18th, 2011 04:50 AM
Help with VBA! billy1r Excel VBA 3 September 9th, 2010 02:56 PM
Code works in Excel VBA but not Access VBA fossx Access VBA 2 May 21st, 2007 08:00 AM
Excel VBA to SQL & back to VBA edesousa Excel VBA 1 June 1st, 2004 02:39 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.