Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Greg Brow
 
Posts: n/a
Default Help with code

I am trying to setup a database and I want to have a macro that will list
all workbooks in a directory and display this in a listbox or combobox. I
have no idea at where to start.

Thanks in advance

Greg


  #2   Report Post  
Gary Brown
 
Posts: n/a
Default

Simple question that looks like it would lead to an entire seminar.
Suggestion. Run out right now and get a copy of John Walkenbach's 'Power
Programming with VBA'. You can also get it at his website...
http://www.j-walk.com/ss/books/index.htm
I've got his 'Excel 2002 Power Programming with VBA' but there is a 2003
edition out. While there are other more complete books out there, IMHO,
John is the best at teaching how to use VBA.

Your question can be broken into 3 parts.
1) Get the directory (Page 369 of the 2002 edition)
2) Get the file names (Page 769 of the 2002 edition)
3) Put the names into a listbox or combobox (Page 423 of the 2002 edition)

The reason I am giving you this type of help is that I believe you need to
learn how to fish instead of having someone hand you a meal. Your question
was very broad and open-ended. If you have more specific questions about
the above 3 steps, we are always here for you.
And now you have an idea as to where to start.
Good luck.
Sincerely,
Gary brown




"Greg Brow" wrote in message
...
I am trying to setup a database and I want to have a macro that will list
all workbooks in a directory and display this in a listbox or combobox. I
have no idea at where to start.

Thanks in advance

Greg



  #3   Report Post  
Greg Brow
 
Posts: n/a
Default

Yeah thanks for the advice. will try to learn it.


Greg


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i create an access code sheet to number my office files an. dana New Users to Excel 1 February 12th 05 03:49 AM
Help with Amending this Code Please [email protected] Excel Worksheet Functions 4 February 1st 05 07:04 PM
Command Button VBA code Dave Peterson Excel Discussion (Misc queries) 2 January 25th 05 11:28 PM
Often-Used Code not working in a new Workbook Steve Excel Discussion (Misc queries) 2 December 16th 04 11:55 PM
Zip Code Macro Ken Wright Excel Worksheet Functions 0 December 9th 04 07:55 AM


All times are GMT +1. The time now is 10:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"