LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default What's the vba equivalent of search(text1,string,1)?

maybe instr

InStr([start, ]string1, string2[, compare])

--


Gary


"John Smith" wrote in message
...
I tried to use the search function in vba, something like the
following:

position = search(text1, string,1)

and got and error.

How is this done in a macro? Thanks.



 
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
How do I bold face text1 but not others in a concatenate string? Jennifer Excel Discussion (Misc queries) 1 August 7th 08 12:31 PM
VBA Equivalent of FIND or SEARCH Function Magnivy Excel Programming 2 August 15th 06 06:48 PM
Wildcard search for string within a string? Ed Excel Programming 0 June 8th 06 11:28 PM
to search for a string and affect data if it finds the string? Shwaman Excel Worksheet Functions 1 January 11th 06 12:56 AM
search a string withing a string : find / search hangs itarnak[_9_] Excel Programming 4 October 24th 05 03:19 PM


All times are GMT +1. The time now is 10:32 PM.

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"