Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Opening files with macros

  1. #1
    Guest

    Default

    I'm trying to write a macro that will prompt the user to open a file and then manipulate the data in that file. So far I've only been able to get the macro to open 1 specific file and manipulate that data. The macro will only work on that one file. Any help that can be provided would be greatly appreciated.

  2. #2
    MrExcel MVP Barrie Davidson's Avatar
    Join Date
    Feb 2002
    Location
    Winnipeg
    Posts
    2,330
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-03-06 07:11, Anonymous wrote:
    I'm trying to write a macro that will prompt the user to open a file and then manipulate the data in that file. So far I've only been able to get the macro to open 1 specific file and manipulate that data. The macro will only work on that one file. Any help that can be provided would be greatly appreciated.
    Have a look at:

    http://ca.geocities.com/b_davidso/We...excel_vba.html

    and search for the question "I have an Excel Template file (report.xlt) and text files (1.txt, 2.txt, 3.txt etc - 45 of this text files) in the same directory". This is an example of code manipulating mutiple files.

    Regards,

    Barrie Davidson

    "You're only given a little spark of madness. You mustn't lose it." - Robin Williams

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •