|
-
Sep 12th, 2006, 06:09 AM
#1
Thread Starter
Fanatic Member
Reading Data from other workbook
Hi
I have a sheet and need read some columns and rows from otther sheet and to import formatting (wihout "/" , "-" ...etc, for example 2005-3/99 will be 2005399).
Somebody know how can I do It, I never do it ?
-
Sep 12th, 2006, 07:50 AM
#2
Frenzied Member
Re: Reading Data from other workbook
You will need a comprehensive rule detailing the exact reformat operation. In the case you have put in your post using a recent version of Excel (will NOT work with Excel '97):
Code:
Option Explicit
Sub Macro1()
Dim tStr As String
tStr = "2005-3/99"
tStr = Replace(tStr, "-", "")
tStr = Replace(tStr, "/", "")
'TEST TEST TEST TEST
MsgBox tStr 'Shows "2005399"
'END TEST
End Sub
Last edited by Webtest; Sep 12th, 2006 at 08:00 AM.
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|