Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Replace function in Excel with MFC

Hello,
I tried to use the replace function for Excel like this:

t_sTmp.Format("1/%d",m_iScale);
oRange.Replace(COleVariant("string to find"),//const VARIANT& What
COleVariant(t_sTmp),//const VARIANT& Replacement
COleVariant((short)1),//const VARIANT& LookAt
COleVariant((short)1),//const VARIANT& SearchOrder
COleVariant((short)TRUE),//const VARIANT& MatchCase
COleVariant((short)FALSE),//const VARIANT& MatchByte
COleVariant((short)FALSE),//const VARIANT& MatchControlCharacters
COleVariant((short)FALSE),//const VARIANT& MatchDiacritics
COleVariant((short)FALSE),//const VARIANT& MatchKashida
COleVariant((short)FALSE));//const VARIANT& MatchAlefHamza

But if I run the program I get an error: Unzulässige Parameteranzahl
(incorrect amount of parameter).
Whats wrong?
Thanks for helping
Thomas
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
replace all function - excel 2003 Rob Excel Worksheet Functions 17 January 23rd 08 03:11 PM
My Find and Replace function in Excel is not working? BPeach Excel Worksheet Functions 2 December 20th 06 11:27 PM
Using REPLACE function in Excel GarryG Excel Discussion (Misc queries) 1 June 17th 05 03:40 AM
Replace function not working properly in Excel 2000 SP3 rgbytg Excel Worksheet Functions 5 November 11th 04 03:44 PM
help automating the Replace function in Excel Heidi Rose Excel Programming 0 April 2nd 04 09:51 PM


All times are GMT +1. The time now is 11:41 AM.

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"