+ Reply to Thread
Results 1 to 2 of 2

Running a macro from the command line on a file that exceeds excels row/column limit

  1. #1
    Registered User
    Join Date
    08-30-2013
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    1

    Running a macro from the command line on a file that exceeds excels row/column limit

    Hi,

    I have been using a useful VB script that goes through a spreadsheet row by row, checks for duplicate cells in that row, deletes all the duplicates and shuffles all the cells along so there are no blanks.

    It looks like this:
    Please Login or Register  to view this content.
    However, I now need to perform the same operation, only on a CSV file that has 48,051 columns and therefore wont load in excel due to its 16,000 column limit.

    Can I run the script from the command line on the file?

    How could I go about doing this?

    Thanks in advance!

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Running a macro from the command line on a file that exceeds excels row/column limit

    that is a lot of columns.
    There are a couple of ways to do this: being a CSV file this is basically a text file and the blanks will be caused by a sequence of two commas or maybe two commas seperated by blanks. Have a look in the file.
    1. You can use a text editor maybe WORD and do macro which loops around a find and replace of find ", ," replace "," (using the relevant number of spaces) until no more finds

    2. You could also use the OPEN FILE, INPUT LINE, PRINT with a bit of code to do this in any VBA or scripting eg EXCEL

    Maybe you could post a couple of sample lines of data and a more complete answer maybe forthcoming.


    click on the * Add Reputation if this was useful or entertaining.

+ 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. When a Value exceeds limit
    By mills49 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-21-2013, 11:16 PM
  2. Notification when a value exceeds a limit
    By -mads in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-11-2012, 07:43 PM
  3. Command line for open excel, insert a sheet, execute a macro, save file exit?
    By uschxc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2012, 12:28 PM
  4. Replies: 0
    Last Post: 02-03-2006, 06:20 AM
  5. Running Macros from Command line
    By DrukeEr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2005, 01:05 PM

Tags for this Thread

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