Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Finding a Character in a String Using VBA

Hi,

I am trying to return an integer for the number of characters from the left
of a string that the character "/" is located.

I need to do this using VBA as I am trying to trim the value of a cell.

Can anyone help?

BVass
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,549
Default Finding a Character in a String Using VBA


Use the InStr function...
InStr(start, string1, string2, compare type)

--
Jim Cone
Portland, Oregon USA


"BVass"

wrote in message
Hi,
I am trying to return an integer for the number of characters from the left
of a string that the character "/" is located.
I need to do this using VBA as I am trying to trim the value of a cell.
Can anyone help?
BVass
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Finding a Character in a String Using VBA

Thanks Jim....you are a life saver!!!!

"Jim Cone" wrote:


Use the InStr function...
InStr(start, string1, string2, compare type)

--
Jim Cone
Portland, Oregon USA


"BVass"

wrote in message
Hi,
I am trying to return an integer for the number of characters from the left
of a string that the character "/" is located.
I need to do this using VBA as I am trying to trim the value of a cell.
Can anyone help?
BVass

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
Check for character in string dksaluki Excel Discussion (Misc queries) 3 December 11th 07 12:53 PM
Finding a character in a text string (take3) Bulent Excel Discussion (Misc queries) 2 October 31st 07 02:35 PM
find a character in a string kevcar40 Excel Discussion (Misc queries) 4 June 5th 07 12:10 PM
Excel-Match 1st text character in a string to a known character? bushlite Excel Worksheet Functions 2 January 15th 07 06:36 PM
Splitting Character String mcertini Excel Worksheet Functions 2 September 12th 05 09:41 AM


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