LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default InStr function

Hi all. I am new to Excel VBA, Here's my problem.
I have a string in a cell for example: "this is my string : category"
What I need to be able to do is find the position of the ":" and return it
as an integer. I understand you can use the InStr function to do this. But....
How do I pass the result onto the spreadsheet itself?
Further to that, how do I use this same function for 50 more rows below?
I have tried using in the cell formula bar something like
"=MyFunctionName(CurrentCell)"
But all I keep getting in the cell is "#NAME!". Any ideas? Thank You.

Ash.
 
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
Use InStr function in formula? Lee Hunter Excel Worksheet Functions 8 May 8th 23 03:45 AM
Help with VBA InStr() function EagleOne Excel Discussion (Misc queries) 10 April 12th 07 02:47 PM
InStr Function zoot Excel Programming 1 June 5th 06 03:53 AM
InStr Function Question gfh28105 Excel Programming 3 September 14th 05 02:28 AM
InStr function question [email protected] Excel Programming 9 June 28th 05 03:03 PM


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