So, thanks for the replies thus far, however to me this is remarkably vague and assumes I understand the context of each of those components and variables, which I do not.
I'm gonna try to decipher what you have posted for myself. Please correct me if I am wrong.
"TypeName" refers to a given type of object or class. I assume this is setting "texty" as a variable which would need to be defined... I am guessing something like "dim texty as object" (or something like that?).
Since texty is set as a textbox after beginning to "For Each" with texty, I don't see how that can function.
"For Each" tells it to check the entire userform for all objects and do the action/code defined after "Then" on all objects that match whatever "texty" is defined as (textbox).
Next tells it to continue the check and move on to the next object and repeat.
I believe the code needed to set "texty" as upper case is "texty.value = UCase(texty)"
I will assume again that the msgbox has nothing to do with what I want.
So I will now try this.
This throws an error on the very first line so I will define "texty" as a thing with "dim texty as object".
After defining "texty" as an object, it throws "object required" at me and highlights the second line, presumably because "texty" doesn't actually exist as it hasn't been defined as a text box until after we are already trying to use it.
From here I have no clue where to go.
Bookmarks