Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / June 2004

Tip: Looking for answers? Try searching our database.

Obtaining the first seven characters of a text cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael McClellan - 30 Jun 2004 00:09 GMT
I am trying to obtain the first seven characters of text in a given cell
in excel using VBA.

i.e. - a cell contains the text HMA4178A.  I want to pass the HMA4178 to
a variable in VBA to be used with the dir statement.  

Does anyone have any idea?
Poh - 30 Jun 2004 04:23 GMT
Hi, try using this function
=Right([Cell Reference or Text String],7)

>-----Original Message-----
>
[quoted text clipped - 9 lines]
>Don't just participate in USENET...get rewarded for it!
>.
Martin Los - 30 Jun 2004 15:01 GMT
strResult =Left(Cell reference or Text String, 7) would do
the trick!

Martin
>-----Original Message-----
>Hi, try using this function
[quoted text clipped - 17 lines]
>>
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.