Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 16th, 2003, 01:26 PM
CplJax CplJax is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 4 CplJax User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Excel Idea

I had an idea that I thought would be extremely cool if I could get it to work, but unfortunately I dont have the programming skills to make it happen.

Here is my thinking.

So I have a batch file that polls the network for all computer names and sends the output to a text file. After collecting the computer names, and importing them into an excel spreadsheet, how would I go about creating a "self-updating" spreadsheet that passed the computer name to various command line commands (like ping) and returning their value(s) to Excel?

Is this possible?

I have the batch files that return the values I am looking for: domain, IP, MAC, computer name.

Is there a way to go about this so that the process is completely automated?

Any ideas? Could someone point me in the right direction as to how I could do this?

Any input is greatly appreciated.

Reply With Quote
  #2  
Old September 17th, 2003, 05:30 AM
ajmh ajmh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 19 ajmh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You can have some VBA kick off external (bat file) processes from the workbook, and those can then be used to update the content.

Once that is done you can import the data programatically.

Reply With Quote
  #3  
Old September 22nd, 2003, 07:00 AM
CplJax CplJax is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 4 CplJax User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
But how? I have never really used VBA before. I can look at the code and get a basic idea of whats going on, but as far as me trying to code this, not in a hundred light years... Any relevant topics I should research to help me try to accomplish this?

Reply With Quote
  #4  
Old September 22nd, 2003, 08:17 AM
ajmh ajmh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 19 ajmh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ok mate - plan of action...

If you have the bat file which does the work, then have it pipe the data to a text file.

On the last line of the bat file put the path and name of the Excel spreadsheet file (not the *.exe) which you want to import the data - this will launch it.

In the workbook open event put the code which you run to import the data from the text file and process it.

Private Sub Workbook_Open()
' Place code here
End Sub


What should happen is you provide a shortcut to your *.bat file. The user runs it, and it runs the batch file - and when the batch file is complete it starts up your Excel spreadsheet. Your spreadsheet then starts running your import code, and lays it out etc however you like.

Not quite what I had originally thought of, but you might find it this method easier to implement.

Hope this helps.

Reply With Quote
  #5  
Old September 25th, 2003, 04:23 PM
clowns119 clowns119 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 95 clowns119 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 51 sec
Reputation Power: 5
Hey,
I am not sure I understand. I have a program in VBA that querys the web and other programs on my local HD to get the data that it needs to work. All I did was use querying. Can't you do that?
If you need more help I got a lot of my excel help from a web site called Mr excel they are really good.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Excel Idea


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway