VBA Excel Does a Function Like this exist?

  • Thread starter Thread starter Saladsamurai
  • Start date Start date
  • Tags Tags
    Excel Function
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
Saladsamurai
Messages
3,009
Reaction score
7
GO TO POST #2 for new question please


I hate to start a thread just for this, but my Googling skills SUCK today!

Is there a function that returns what character is in a given position within a string?

For example,

Dim MyName As String
MyName = "SaladSamurai"

FunctionINeed(2)


Then it would return "a"

I could write something...but I hate to reinvent the wheel on this one.

Thanks!
 
Last edited:
Physics news on Phys.org
Nevermind, I am a moron. I have been using it all day! Mid ... idiot...

BUT, while you are reading this, unrelated question:

You know in XML or other mark up languages how they wrap some thing with those command things (yes, I realize that I am butchering the language here)? For example

<ABC>X</ABC> What is the name of the entire "<ABC>" object? Is it a 'command' or a what?

I just want to name my function appropriately. It grabs the '<'and '>' and whatever is in between.
 
Last edited: