Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Search and find all "$" in a string

Hi Guys,

I need help to search and find all the "$" in a range so as the outpuit
looks like this

"A10:AG10"

At the moment the unwanted string looks like this

"$A$10:$AG$10"

Is their a way that I can be rid of the $ from my string range.

I have tried instr command and then deleting the found value etc but it is
rather cumbersome.

Can someone help me??

Many thnaks for your input in advance!!

Cheers,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Search and find all "$" in a string

Use Replace

MyString = Replace(MyString,"$","")

"DontKnow" wrote:

Hi Guys,

I need help to search and find all the "$" in a range so as the outpuit
looks like this

"A10:AG10"

At the moment the unwanted string looks like this

"$A$10:$AG$10"

Is their a way that I can be rid of the $ from my string range.

I have tried instr command and then deleting the found value etc but it is
rather cumbersome.

Can someone help me??

Many thnaks for your input in advance!!

Cheers,

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Search and find all "$" in a string

Where did you get that text from? If it was from the Address property of a
Range, you could have that property give it to you in the form you want by
making use of its optional arguments. For example, execute this line in the
Immediate Window...

MsgBox Range("B2:H3").Address & vbCrLf & _
Range("B2:H3").Address(False, False)

Notice the $ signs in the first line and, for the same range, the lack of
them in the second line.

--
Rick (MVP - Excel)


"DontKnow" wrote in message
...
Hi Guys,

I need help to search and find all the "$" in a range so as the outpuit
looks like this

"A10:AG10"

At the moment the unwanted string looks like this

"$A$10:$AG$10"

Is their a way that I can be rid of the $ from my string range.

I have tried instr command and then deleting the found value etc but it is
rather cumbersome.

Can someone help me??

Many thnaks for your input in advance!!

Cheers,


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Search and find all "$" in a string

Thanks Guys

Thats excellent!!

Cheers

"Rick Rothstein" wrote:

Where did you get that text from? If it was from the Address property of a
Range, you could have that property give it to you in the form you want by
making use of its optional arguments. For example, execute this line in the
Immediate Window...

MsgBox Range("B2:H3").Address & vbCrLf & _
Range("B2:H3").Address(False, False)

Notice the $ signs in the first line and, for the same range, the lack of
them in the second line.

--
Rick (MVP - Excel)


"DontKnow" wrote in message
...
Hi Guys,

I need help to search and find all the "$" in a range so as the outpuit
looks like this

"A10:AG10"

At the moment the unwanted string looks like this

"$A$10:$AG$10"

Is their a way that I can be rid of the $ from my string range.

I have tried instr command and then deleting the found value etc but it is
rather cumbersome.

Can someone help me??

Many thnaks for your input in advance!!

Cheers,



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
need a formula to find "*" in s string and multiply by preceding andfollowing values Tonso Excel Discussion (Misc queries) 4 April 20th 10 06:01 AM
How to search for "@" in text string? Robert Brown Excel Worksheet Functions 5 November 18th 08 02:04 AM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
using "find" or "search" to find commas Shakespeare Excel Discussion (Misc queries) 3 April 7th 06 07:09 PM
Binocular search tool, Excel, loses column designation at "Find" Little Rock Ette Excel Discussion (Misc queries) 1 November 16th 05 04:54 PM


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