Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default search formula for 1st space

hello,

I'm trying to enter in a search formula in vba, but i'm having troubl
with the syntax because i'm using 2 sets of parentheses.

Range("A1").Formula = "=SEARCH(" ",B1,1)"

there is a problem because i want to search for the first space in
sentence, but in the editor, it is recognizing the first two set o
parentheses and then the second set, expecting me to concatenate th
two strings. how can i fix this? Thank

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default search formula for 1st space

HI

where you have Double Quote marks in your formula just use
"" Instead of "

so your example would become

Range("A1").Formula = "=SEARCH("" "",B1,1)"


HTH

Davi

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default search formula for 1st space

thanks

--
Message posted from http://www.ExcelForum.com

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
formula to add space within text Jennifer Excel Worksheet Functions 7 June 30th 15 06:20 AM
add space between the results of a formula and text rog Excel Discussion (Misc queries) 2 January 16th 06 03:33 PM
formula that will go up one space if no value in specified space skammi Excel Worksheet Functions 1 November 16th 05 03:28 PM
Inserting a Space in The Same Place Formula carl Excel Worksheet Functions 2 March 4th 05 11:10 PM
What takes the place of a space in a formula? greenrocksandsodoesschoolandmylife Excel Discussion (Misc queries) 3 February 3rd 05 07:00 PM


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