+ Reply to Thread
Results 1 to 3 of 3

Convert Macro .....

  1. #1
    Registered User
    Join Date
    11-14-2005
    Posts
    9

    Convert Macro .....

    Hi i record this macro:

    Range("B90").Select
    ActiveCell.FormulaR1C1 = "=LEN(RC[-1])"
    Range("B91").Select
    ActiveCell.FormulaR1C1 = "=MID(R[-1]C[-1],1,RC[-1]-4)"
    Range("B92").Select
    ActiveCell.FormulaR1C1 = "=LEN(R[-1]C)"
    Range("B93").Select
    ActiveCell.FormulaR1C1 = "=MID(R[-2]C,22-8,22)"
    Range("B93").Select

    But i want to convert using Tags, like this
    FileN = Worksheets("Datos").Range("A1").Value
    Long = "=LEN(FileN)"
    A = "=MID(FileN,1,Long - 4)
    Long = "=LEN(A)"
    FileN = "=MID (FileN,Long-8,Long)

    How can i do ??

    Thanks

  2. #2
    Tom Ogilvy
    Guest

    RE: Convert Macro .....

    FileN = Worksheets("Datos").Range("A1").Value
    Long = LEN(FileN)
    A = MID(FileN,1,Long - 4)
    Long = LEN(A)
    FileN = MID(FileN,Long-8,Long)

    --
    Regards,
    Tom Ogilvy


    "rvillanueva" wrote:

    >
    > Hi i record this macro:
    >
    > Range("B90").Select
    > ActiveCell.FormulaR1C1 = "=LEN(RC[-1])"
    > Range("B91").Select
    > ActiveCell.FormulaR1C1 = "=MID(R[-1]C[-1],1,RC[-1]-4)"
    > Range("B92").Select
    > ActiveCell.FormulaR1C1 = "=LEN(R[-1]C)"
    > Range("B93").Select
    > ActiveCell.FormulaR1C1 = "=MID(R[-2]C,22-8,22)"
    > Range("B93").Select
    >
    > But i want to convert using Tags, like this
    > FileN = Worksheets("Datos").Range("A1").Value
    > Long = "=LEN(FileN)"
    > A = "=MID(FileN,1,Long - 4)
    > Long = "=LEN(A)"
    > FileN = "=MID (FileN,Long-8,Long)
    >
    > How can i do ??
    >
    > Thanks
    >
    >
    > --
    > rvillanueva
    > ------------------------------------------------------------------------
    > rvillanueva's Profile: http://www.excelforum.com/member.php...o&userid=28814
    > View this thread: http://www.excelforum.com/showthread...hreadid=538149
    >
    >


  3. #3
    Registered User
    Join Date
    11-14-2005
    Posts
    9

    Thumbs up Thnanks

    Works fine !!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1