Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel Cell.Replace question

Is there a way to limit the scope of the Cell.Replace function to a
selected row? When ever I use this function it replaces everything on
the worksheet.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel Cell.Replace question

rows(3).Replace

--
Regards,
Tom Ogilvy


wrote in message
oups.com...
Is there a way to limit the scope of the Cell.Replace function to a
selected row? When ever I use this function it replaces everything on
the worksheet.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Excel Cell.Replace question

Teh replace function acts on a range of cells. I find it most convenient to
use a range object for this type of thing. Something like...

dim rng as range

set rng = sheets("Sheet1").columns(1)

rng.replace ...

Which will perform the replace on column A
--
HTH...

Jim Thomlinson


" wrote:

Is there a way to limit the scope of the Cell.Replace function to a
selected row? When ever I use this function it replaces everything on
the worksheet.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel Cell.Replace question

Thank you for your assistance, I should have been able to find this.
Thanks again.

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
Can I replace a ' at the beginning of a text cell using Replace Hilde Excel Discussion (Misc queries) 4 September 10th 07 06:22 PM
Excel - create button to replace cell content with cell value blackmot Excel Worksheet Functions 3 December 7th 05 05:10 PM
How do I find and replace a question mark in Excel? Ranpalandil Excel Discussion (Misc queries) 1 September 7th 05 10:20 PM
EXCEL : Replace a value in a cell by a picture Vanderzeypen Excel Discussion (Misc queries) 1 April 28th 05 04:19 PM
turn off the " replace file?" question when saving excel files Dave Parkes Excel Programming 1 December 16th 04 05:08 PM


All times are GMT +1. The time now is 01:19 AM.

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

About Us

"It's about Microsoft Excel"