Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula to add space within text | Excel Worksheet Functions | |||
add space between the results of a formula and text | Excel Discussion (Misc queries) | |||
formula that will go up one space if no value in specified space | Excel Worksheet Functions | |||
Inserting a Space in The Same Place Formula | Excel Worksheet Functions | |||
What takes the place of a space in a formula? | Excel Discussion (Misc queries) |