Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB for EXCEL

Status
Not open for further replies.

akar33

Programmer
Dec 13, 2004
39
0
0
US
I am trying to open
1. create a macro that will open EXCEL workbook
2. count the number of columns, if it is less than 5 it will fails, gives error message
3. Counts to see, if it has more than 12 lines (records), if less it fails, gives error message.

Thanks
Annie
 
Opening an excel workbook is a subject covered countless times here. Reading and picking out the relevant bits from thread796-1195737 should give you what you need.

Sweep
...if it works, you know the rest..
Always remember that Google is your friend

curse.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top