+ Reply to Thread
Results 1 to 3 of 3

Importing Macro VBA Help - Data Import Window on Macro

  1. #1
    Registered User
    Join Date
    05-17-2017
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office 2013
    Posts
    2

    Importing Macro VBA Help - Data Import Window on Macro

    Hello VBA Forums.

    My name is Zhi. I am new to this forum~ I have some VBA basic skills but I have not used it for a while and trying to get back into using it. Recently, I am trying to analyse a bunch of data which makes it extremely tedious to do it manually. I have this set of data which contains two columns.

    I am interested in finding out the area below it using a Macro so I can load a .CSV file and spit out a value with the ability base on a very simple mathematics formula. My question is, how can make such a VBA run a macro when I hit "1. Run Macro > 2. Open Import Data Dialog > 3. Select the .CSV File > 4. Run Macro"?

    I would like some help with Step #2? I highlighted the part which I want to adjust. But I do not know what to press to make it open a "Window File Selection" box so I can choose the .CSV file. I want it to be able to computer everything as soon as I select that CSV file. Thank you in advance.

    My current code looks like this:
    Please Login or Register  to view this content.
    [/SIZE]
    Last edited by alansidman; 05-17-2017 at 10:54 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2407 Win 11 Home 64 Bit
    Posts
    24,086

    Re: Importing Macro VBA Help - Data Import Window on Macro

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    05-17-2017
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office 2013
    Posts
    2

    Re: Importing Macro VBA Help - Data Import Window on Macro

    Quote Originally Posted by alansidman View Post
    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code...[/B]
    My apology. Thank you for correcting this for me.

+ 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. Import Macro sometimes adding data to end of last import
    By himynameisiain in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2013, 07:06 AM
  2. [SOLVED] Browse window: Importing data onto a new line in another spreadsheet ISSUE
    By jennymc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2013, 10:56 AM
  3. Browse window: Importing data onto a new line in another spreadsheet
    By jennymc in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-18-2013, 05:34 AM
  4. web macro and importing data from the web ???
    By marcbert in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-07-2013, 09:08 PM
  5. Replies: 1
    Last Post: 04-02-2011, 08:29 AM
  6. Importing Data Via Macro
    By Whizbang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2010, 02:38 PM
  7. Importing Data via Macro
    By acs013 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-14-2009, 03:59 AM
  8. [SOLVED] Importing Data Via A Macro
    By MWS in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-28-2005, 01:50 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