Results 1 to 2 of 2

Thread: Reading Data from other workbook

  1. #1

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    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 ?

  2. #2
    Frenzied Member
    Join Date
    May 2004
    Location
    Carlisle, PA
    Posts
    1,045

    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
  •  



Click Here to Expand Forum to Full Width