Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default If String starts with a * (asterik)

I need to do loop of actions on a list of strings.
If the string begins with an * it's not supposed to be changed or edited.
Everything else should be.

How to search and tell if the vba string starts with a *
something with MID, or Left maybe?

Little help... still learning vba here.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default If String starts with a * (asterik)

if left(mycell.value, 1) = "*" then
'skip it
else
'do the work
end if




Benjamin wrote:

I need to do loop of actions on a list of strings.
If the string begins with an * it's not supposed to be changed or edited.
Everything else should be.

How to search and tell if the vba string starts with a *
something with MID, or Left maybe?

Little help... still learning vba here.


--

Dave Peterson
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
Excel E-2007 starts, but Installer also starts 3 times??? Thanks for the Great Tip Setting up and Configuration of Excel 0 January 24th 10 03:21 AM
Delete asterik mark da Excel Discussion (Misc queries) 4 October 6th 09 08:28 PM
How can I find an asterik "*" in a spreadsheet using ctrl+F? pulling my hair out Excel Discussion (Misc queries) 4 October 9th 06 01:46 AM
How to find if a string starts with a digit galsaba Excel Worksheet Functions 1 March 4th 05 06:01 PM
Error when string length 1024 and starts with - Dianne Excel Programming 3 December 4th 03 07:31 AM


All times are GMT +1. The time now is 06:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"