+ Reply to Thread
Results 1 to 1 of 1

Tweaking A Powershell Script for Opening CSV Files as Text

  1. #1
    Registered User
    Join Date
    07-13-2007
    Posts
    3

    Tweaking A Powershell Script for Opening CSV Files as Text

    For a few weeks now, I've been trying to find ways to get Excel to work with CSV files in a more streamlined manner. Ideally, I want to just double click the file and the CSV will open- WITH trailing zeros and fractions that don't convert to dates. So far, I found a script that's very very close but, rather than opening the file, it imports the data into a blank workbook, so, if I want to make changes to the CSV, I have to copy and paste the name from the original. To someone with powershell scripting knowledge, I don't think this is a complicated tweak, but unfortunately, my knowledge of powershell scripting is nominal. Here's the script:

    http://superuser.com/a/527894/626174

    Please Login or Register  to view this content.
    There may be more than one way to do this, but, off the top of my head, I think, at the beginning of the script, grabbing the name of the file, and, at the end, using that name to save the file to csv, overwriting the one that's there.

    Any help would be appreciated.
    Last edited by scott123; 08-04-2016 at 06:23 PM.

+ 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. script to run the macro from Vb script with out opening the excel file
    By chandanp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2021, 03:33 AM
  2. Replies: 2
    Last Post: 02-14-2016, 11:00 PM
  3. How to incorporate a batch command and a powershell script into VBA code
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2015, 07:25 AM
  4. Powershell code to count data connections and return output to a text file
    By Jack C in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-29-2014, 04:05 AM
  5. Opening Multiple Text Files
    By aronjg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2006, 08:55 AM
  6. Opening large text files
    By freekrill in forum Excel General
    Replies: 6
    Last Post: 09-06-2005, 11:44 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