LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 142
Default Array as defined list in sheet 'Temp'..

On Sep 18, 11:14*pm, Sinner wrote:
On Sep 18, 5:54*pm, "Bob Phillips" wrote:





Yes, and two of us replied. You haven't reverted on those.


--
__________________________________
HTH


Bob


"Sinner" wrote in message


...
On Sep 17, 6:46 pm, "Bob Phillips" wrote:


My mum always use to start a sentence with Dear ... when she was about to
tell me I was being stupid. There was a tone as well, but maybe Sinner
meant
the same ... :-)


--
__________________________________
HTH


Bob


"Peter T" <peter_t@discussions wrote in message


...


"Sinner" wrote in message


Dear can't we define it as a dynamic name in sheet and use that
name in code instead of range??


Does that mean "Oh dear..." or "Dear Bob....", or "That's too
expensive..."


Are you looking to replace OldWords(i) with NewWords(i) in all cells in
the sheet, or do something else.


Regards,
Peter T- Hide quoted text -


- Show quoted text -


I think i didn't post the reply properly. Did anyone of you got the
reply?? : (
Bob & Peter.


Thx.- Hide quoted text -


- Show quoted text -


O : (

Bob : ) I use dear to everyone.. a habbit i.e. : ) so it was dear
Bod : )

Dear both actually I was looking for a way to replace text in a sheet
'data' base on criteria in a sheet 'temp'. The criteria is in

I have already tried with vlookup but its very time consuming.
Secondly the the ranges of both data & criteria are dynamic. So for
above code, I have to change the range as per requirement. Lets say I
define the data range as a name 'DATA' and criteria as 'CRT'. This way
the macro will be intact & if the ranges changes, I will need to alter
the name range rather than the range values in code.

Lastly the replacement should be irrespective of CaSE, case, CASE
sensitivity.
The previous code replaced words exactly as mentioned in the 'Temp'
sheet which it should not do.

Sample file is athttp://www.savefile.com/files/1777260

Thx for your replies.- Hide quoted text -

- Show quoted text -


Dim OldWords As Range
Dim NewWords As Range

Set OldWords = Range("A2:A14")
Set NewWords = Range("H5:H17")
For i = 1 To OldWords.Cells.Count


NewWords.Cells(i, 1).Copy OldWords.Cells(i, 1)
Next i


I want the Range(Old List), Range(New list) to be a defined name
How do I do that??
 
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
Problem using obj.Namespace(sourceFileName) Namespace(DestinationFilename).Itemsand then opening the xls file which creates a Temp Folder inside Temp Yuvraj Excel Discussion (Misc queries) 3 May 3rd 09 11:59 AM
Defined named range (Array list) Sinner Excel Programming 2 February 16th 08 02:17 PM
Recently Used File List - 2002 Contains 'Temp' Files Keith972002 Excel Discussion (Misc queries) 0 July 26th 05 01:46 PM
Cant Select temp Sheet ExcelMonkey[_190_] Excel Programming 1 March 16th 05 05:14 PM
Copying Temp List to cell asmenut Excel Programming 0 September 26th 04 09:59 PM


All times are GMT +1. The time now is 08:28 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"