Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
parsing a string
i'm writing a macro from within excel 2003. if i have a string with value
"abc", how do i select just "ab". i tried the left(string,number) function (which i use in VB all the time) but i guess within excel that doesnt' work? thanks. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
parsing a string
Hi Mark
umm, left should work .. check out the following Sub teststring() mystr = "abc" MsgBox Left(mystr, 2) End Sub if you can't get it to work, post your code and we'll have a look. -- Cheers JulieD check out www.hcts.net.au/tipsandtricks.htm ....well i'm working on it anyway "Mark" wrote in message ... i'm writing a macro from within excel 2003. if i have a string with value "abc", how do i select just "ab". i tried the left(string,number) function (which i use in VB all the time) but i guess within excel that doesnt' work? thanks. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
parsing a string
you're correct..it does work.. i'm brain dead this morning..
sorry for wasting your time. (my error was related to something else) thx. "JulieD" wrote in message ... Hi Mark umm, left should work .. check out the following Sub teststring() mystr = "abc" MsgBox Left(mystr, 2) End Sub if you can't get it to work, post your code and we'll have a look. -- Cheers JulieD check out www.hcts.net.au/tipsandtricks.htm ...well i'm working on it anyway "Mark" wrote in message ... i'm writing a macro from within excel 2003. if i have a string with value "abc", how do i select just "ab". i tried the left(string,number) function (which i use in VB all the time) but i guess within excel that doesnt' work? thanks. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
parsing a string
As JulieD said, it works in VBA. However, this is often the command you
will get an error on if you have bad references in Tools=References. Look there after the error and see if you have one or more references marked as MISSING. If you do, you need to fix these references. References shown in Tools=References in the VBE are relative to the Active Project. Make sure (look in the project explorer window) that your workbook is the Active Project (selected in the project explorer window). -- Regards, Tom Ogilvy "Mark" wrote in message ... i'm writing a macro from within excel 2003. if i have a string with value "abc", how do i select just "ab". i tried the left(string,number) function (which i use in VB all the time) but i guess within excel that doesnt' work? thanks. |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
parsing a string
no probs .. all have days like that :)
-- Cheers JulieD "Mark" wrote in message ... you're correct..it does work.. i'm brain dead this morning.. sorry for wasting your time. (my error was related to something else) thx. "JulieD" wrote in message ... Hi Mark umm, left should work .. check out the following Sub teststring() mystr = "abc" MsgBox Left(mystr, 2) End Sub if you can't get it to work, post your code and we'll have a look. -- Cheers JulieD check out www.hcts.net.au/tipsandtricks.htm ...well i'm working on it anyway "Mark" wrote in message ... i'm writing a macro from within excel 2003. if i have a string with value "abc", how do i select just "ab". i tried the left(string,number) function (which i use in VB all the time) but i guess within excel that doesnt' work? thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
parsing on a date string pulled from a database. | Excel Discussion (Misc queries) | |||
Parsing when deliminator is a string | Excel Worksheet Functions | |||
Parsing a String to get Numbers | Excel Programming | |||
Parsing a string to retrieve numerals | Excel Programming | |||
Unicode string parsing? Please help! | Excel Programming |