+ Reply to Thread
Results 1 to 4 of 4

Import as Text VBA Macro.

  1. #1
    Registered User
    Join Date
    11-19-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Import as Text VBA Macro.

    Import as text.xlsx

    Hey guys
    Just wondering. I know excel import as text is awesome.
    But the thing is, when i have 10 reports to do, and each time, i have to copy from PDF, open txt file, paste in a txt file and save, and import it in from excel, it hits away on my time

    Anyways, i wonder if there is a VBA macro which does exactly what import as text does? (with space separators).

    that means for example
    A1=Quarter Revenue 1,671,718 1,483,937 13% 4,976,318 5,434,753 -8%

    becomes
    b1 = Quarter Revenue
    c1 = 1,671,718
    d1 = 1,483,937
    e1 = 13%
    etc

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Import as Text VBA Macro.

    open macro recorder, select A1, Data, Text to Columns, ..... , close macro recorder
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    11-19-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Import as Text VBA Macro.

    ah.

    such an easy solution.
    I guess there is no way for me to "re-allign" the text and numbers automatically?

    for example, Quarterly Revenue i want it to be in the same cell despite it having a space.

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Import as Text VBA Macro.

    you need different separators

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to Parse Text - Import text to Excel from Multiple Text Files & Folders
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2012, 01:05 AM
  2. [SOLVED] Import text file from VBA code; import all numbers as text
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-19-2012, 05:19 PM
  3. macro to import text file
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2008, 09:08 AM
  4. Macro to Import Text
    By Miasha in forum Excel General
    Replies: 8
    Last Post: 08-18-2006, 11:35 AM
  5. How to open the //Text Import Wizard// from within a macro?
    By e18 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-07-2006, 12:10 PM

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