+ Reply to Thread
Results 1 to 3 of 3

Opening CSV File in Excel, Offering a DropDown, and Automatically Resave CSV with Change

  1. #1
    Forum Contributor
    Join Date
    12-09-2015
    Location
    Virginia, USA
    MS-Off Ver
    2007
    Posts
    123

    Opening CSV File in Excel, Offering a DropDown, and Automatically Resave CSV with Change

    Hello,

    I am trying to create a status editor for a work project for sales leads. I have a file located in C:/Project/Leads.csv. This worksheet has customer information through Column O (the status column). I want each customer line to have a dropdown box in Column O with 5 statuses:

    "0 - Not Interested"
    "1 - Email"
    "2 - Phone"
    "3 - Quote"
    "4 - Sold"

    Ideally, when a dropdown on a line is changed, the macro would automatically save Leads.csv.

    The customer list changes every week, so hopefully I can just refresh the leads.csv file and all the new information would appear for the next week (versus having to just build a whole new file each time).

    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,220

    Re: Opening CSV File in Excel, Offering a DropDown, and Automatically Resave CSV with Chan

    A CSV file is a text file, not a native Excel file (compare the appearance of a CSV and XLSX file by opening both in Notepad). So there is no way to save the CSV with an inserted drop-down list.

    Artik

  3. #3
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Opening CSV File in Excel, Offering a DropDown, and Automatically Resave CSV with Chan

    Hello.
    a) Save the two files that the 'zip' contains in a folder to do some tests with them.

    b) Open the workbook and click 'Load' to incorporate the data from the selected 'csv' (the test 'csv').

    c) In the 'Status' column add all the statuses you want.

    d) Finally click on 'Save' to save the info in the test 'csv'.

    When you are sure that everything is working fine you can try with your real 'csv'.
    Before doing that you must modify the following line of code:

    Please Login or Register  to view this content.
    Note that columns A and B are taken up by other tasks, so the 'Status' position of your real csv will probably be 2 columns away from what you knew.
    Attached Files Attached Files
    You are always very welcome if you add reputation by clicking the * (bottom left) of each message that has helped you.

+ 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. Windows restarts automatically on opening an excel file
    By shashankgupta22 in forum Excel General
    Replies: 2
    Last Post: 08-28-2022, 12:28 AM
  2. [SOLVED] How macro file opening automatically when Excel open
    By ndiaye in forum Excel General
    Replies: 3
    Last Post: 11-12-2019, 08:07 AM
  3. How do you prevent an Excel file from automatically opening in OneDrive?
    By stardustandsunshine in forum Excel General
    Replies: 0
    Last Post: 09-12-2019, 06:10 PM
  4. [SOLVED] Resave a excel file without manually interacting with a macro
    By mikey3580 in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 11-26-2016, 07:02 PM
  5. [SOLVED] Automatically Copy Data in Excel File upon opening email attachment
    By rachaelgoldman1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2013, 05:21 AM
  6. Change DisplayCommentIndicator upon opening Excel File
    By dscoiho in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2009, 08:22 PM
  7. Replies: 0
    Last Post: 11-08-2007, 04:14 AM

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