+ Reply to Thread
Results 1 to 4 of 4

Convert column to text - in a worksheet of a designated file.

  1. #1
    Registered User
    Join Date
    11-09-2021
    Location
    Vienam
    MS-Off Ver
    2016
    Posts
    16

    Convert column to text - in a worksheet of a designated file.

    Hi All,

    I would like to have support on a code which can help to convert the Entire column A to text .
    Example : I have the excel with macro file and open a designated file and would like to convert column A to that file to text and save it .
    I have no idea how to code it as I tried many ways but cannot build it. Would like to have help with this.

    Thanks.

    Jennie.

    The code I am working on - but have no clue on the conversion.
    Attached Files Attached Files
    Last edited by Jennie82; 11-27-2021 at 09:43 AM. Reason: revised wording

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Convert column to text - in a worksheet of a designated file.

    What's currently in column A?

    If formulae and you want to change them to values then perhaps

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-09-2021
    Location
    Vienam
    MS-Off Ver
    2016
    Posts
    16

    Re: Convert column to text - in a worksheet of a designated file.

    Dear Richar,

    Column A value is in the Database file which I attached. I use the macro in file Format DAtabase to open and convert column A to text.

    The formula is not working :

    Columns("A:A").Select
    Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
    TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
    Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
    :=Array(1, 2), TrailingMinusNumbers:=True

    When I open the file by the macro, this formula only works in my 1st file (file format Database ) , not second file (file database).

    Jennie.

  4. #4
    Registered User
    Join Date
    11-09-2021
    Location
    Vienam
    MS-Off Ver
    2016
    Posts
    16

    Re: Convert column to text - in a worksheet of a designated file.

    Quote Originally Posted by Richard Buttrey View Post
    What's currently in column A?

    If formulae and you want to change them to values then perhaps

    Please Login or Register  to view this content.

    I have errors when using this formula (as attached in word) . Explanation , I have a database file , in column A, people can input Number which cause errors when I try to search from a User form.
    I want a macro which can help to convert the whole column to text so all values are text .
    This expectation cannot be solved when I use number format as "@" , Only solved when I go to the file and convert to text . I want to build it through VBA.
    Attached Files Attached Files

+ 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. Convert Excel Column to text file seperated by commas
    By stri9504 in forum Excel General
    Replies: 9
    Last Post: 05-17-2015, 02:34 PM
  2. Replies: 0
    Last Post: 04-21-2014, 04:03 PM
  3. Export Each Column on Worksheet as Text File
    By ruezo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-26-2012, 11:33 AM
  4. Need help to convert huge mutiple worksheet workbook to text file to feed to mainframe
    By chandra 2185 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2012, 02:02 PM
  5. Convert Excel to formatted text file text file
    By rbpd5015 in forum Excel General
    Replies: 2
    Last Post: 01-14-2011, 10:27 AM
  6. Convert Each column of an excel file to new text file
    By ggalex in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2007, 09:35 AM
  7. automatically detect excel file in designated directory and convert to pdf
    By brucelim80 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2006, 10:04 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