Results 1 to 7 of 7

Parsing text with VBA

Threaded View

  1. #1
    Registered User
    Join Date
    05-27-2010
    Location
    Your sister's house
    MS-Off Ver
    Excel 2007
    Posts
    27

    Parsing text with VBA

    I'm looking to write a macro that can take text from one cell and set a user defined number of spaces between it along with the text from another cell. I did it manually and used the macro recorder, but it doesn't really help
    ie

    Sub Parse_Text()
    '
    ' Parse_Text Macro
    '
    
    '
        Range("E4").Select
        ActiveCell.FormulaR1C1 = "=RC1&""        ""&RC2"
        Range("E5").Select
    End Sub
    As I want to be able to tell the macro how many spaces I want between the text.
    Eventually I will write the parsed text to a text file.

    Is there a way to do this with VBA? Can someone just point me in the right direction?
    Last edited by Carnifex930; 05-30-2010 at 02:19 PM.

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