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



The first 5-6 arguments are the same, but the rest are not, and it
doesnt make the replace.
thanks again.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Replace Function

Yossi,

Post the code you are using in Excel 97 and the code you are using
in Excel 2002.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Yossi Shalom" wrote in message
...


The first 5-6 arguments are the same, but the rest are not, and

it
doesnt make the replace.
thanks again.

*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Replace Function

the code :
colum.Replace What:="c:\pikuhit\[1000.xls]", Replacement:="c:\pikuhit\"
& year_taagid & "\[" & num_taagid & ".xls]", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, MatchControlCharacters:=False,
_
MatchDiacritics:=False, MatchKashida:=False, MatchAlefHamza:=False

This is the code in 97.
Untill MatchCase, its the same.
If i run this code I get error.
When I change, it doesnt give error but do nothing.

Thanks


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Replace Function

Yossi,

Unless you need the arguments after the MatchCase argument, you
can omit them. They apply only, I think, to Far East versions of
Excel. If you want to use all the arguments, use code like

#IF VBA6 THen
' Excel 2000 version of Replace
#Else
' Exce 97 version of Replace
#End IF


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"Yossi Shalom" wrote in message
...
the code :
colum.Replace What:="c:\pikuhit\[1000.xls]",

Replacement:="c:\pikuhit\"
& year_taagid & "\[" & num_taagid & ".xls]", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False,

MatchControlCharacters:=False,
_
MatchDiacritics:=False, MatchKashida:=False,

MatchAlefHamza:=False

This is the code in 97.
Untill MatchCase, its the same.
If i run this code I get error.
When I change, it doesnt give error but do nothing.

Thanks


*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Replace Function


Hi again.
Its working now.
The problem was that the worksheet was protected.
I unprotected it and it worked.
In Excel 97 you dont need to unprotect the worksheet in order to use
Replace function.

Thank you very much for the support.
I hope that i wont use it again.

Yossi Shalom.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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 you have a value created by a function replace the function? xak1222 Excel Worksheet Functions 3 September 10th 09 09:37 AM
REPLACE FUNCTION!!!!!! Ola2B Excel Discussion (Misc queries) 3 June 22nd 07 05:55 PM
Replace function anandmr65 Excel Discussion (Misc queries) 1 May 10th 06 01:36 PM
Replace Function DNA Excel Discussion (Misc queries) 7 November 10th 05 11:20 PM
Need Help with Replace Function buymearing Excel Worksheet Functions 4 November 2nd 05 01:39 PM


All times are GMT +1. The time now is 03:29 PM.

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"