Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default split cell content without using a specific character/sign

Roger,
One way:-

Sub Test()
Dim intA As Integer, strB As String
Dim strC As String, Var
Var = ActiveCell.Value ' (or whatever)
intA = Left(Var, 2)
strB = Mid(Var, 3, 1)
strC = Right(Var, 1)
End Sub

This only works if the format of the target is always the same.

regards'
Don
--

"Roger" wrote in message
om...
Hi All,

I have an issue with how to split cell content without using a
specific character/sign.

Eg
The content of a cell is 13GR.

The searched result after the splitting of the cell content shall be:
intA= 13
strB = G
strC = R

How should the code be written to solve the issue?

I would be very grateful for help.
Roger



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
split the content of cell cosmic Excel Worksheet Functions 3 May 28th 10 04:48 PM
Split cell content PK Excel Discussion (Misc queries) 3 March 5th 10 08:36 PM
How to split Cell content into two resulting cells [email protected] Excel Worksheet Functions 1 October 23rd 06 12:30 PM
sort starting from a specific character (@ sign) for email addres RobJ Excel Discussion (Misc queries) 1 June 12th 06 09:18 PM
Split cell values based on content mel Excel Worksheet Functions 4 March 30th 05 04:03 PM


All times are GMT +1. The time now is 03:48 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"