Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > MacNN Lounge > Some Advice With Excel on Windows

Some Advice With Excel on Windows
Thread Tools
Senior User
Join Date: Sep 2000
Location: Glasgow, Scotland UK
Status: Offline
Reply With Quote
Oct 14, 2004, 06:06 PM
 
i know this is a mac forum but there is a mac question here as well but since i know you guys are all uber knowledgeable i figured this would be as good a place to start as any.

i'm going to be doing a little work for a business and i need to learn how to script excel to do simple stuff like create a new spreadsheet from the columns of others, so to do this i understand i need to learn VB(Script?). first of all i'm AI+CS student and i've got some working knowledge of java how difficult is VB gonna be for me to pick do you reckon? secondly i've been looking for a decent book on the subject and a quick look on Amazon turned up this. Anyone have experience with this book or any better suggestions.

finally the mac part (yes it is here somewhere!), can i do this development with Excel on my Mac (its Excel vX no updates - tis not the most legal version of Office in the world!) or do i need Windows and Excel 2003 or whatever the latest version is. Office 2004 is an option its not overly expensive with my student discount.

thanks in advance!
"You can't waste a life hating people, because all they do is live their life, laughing, doing more evil."

-ALPHA ROBERTSON,whose daughter was one of four girls killed in the bombing of a Birmingham, Ala., church in 1963.
     
ntsc  (op)
Senior User
Join Date: Sep 2000
Location: Glasgow, Scotland UK
Status: Offline
Reply With Quote
Oct 15, 2004, 10:01 AM
 
anyone?
"You can't waste a life hating people, because all they do is live their life, laughing, doing more evil."

-ALPHA ROBERTSON,whose daughter was one of four girls killed in the bombing of a Birmingham, Ala., church in 1963.
     
Professional Poster
Join Date: Oct 1999
Location: Canada
Status: Offline
Reply With Quote
Oct 15, 2004, 10:23 AM
 
I found VB to be quite easy to pick up and apply. Googling will turn up a number of good resources on the web, such as the following, for example:

Visual Basic Tutorial

or this:

Homekey - VB Tutorial

There's a lot of info out there. Hopefully you'll find a tutorial which is germaine to your needs.
     
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Online
Reply With Quote
Oct 15, 2004, 10:32 AM
 
Originally posted by ntsc:
anyone?
Actually, I'm not sure what you really want to know.

Do you look for a book recommendation on VB or are you looking for a book for Excel in general ?

The one specific thing you mentioned ("simple stuff like create a new spreadsheet from the columns of others") does not give me enough of an idea what you want to do. I think you could even use the macro recorder to do that, no need of VB scripts.

Regarding VB compatibility: I thought that Excel vX was supposed to be fully compatible to the Windows Office VB, but I never got into it deep enough to figure out if it's true.

-t
     
Professional Poster
Join Date: Oct 2001
Location: PA
Status: Offline
Reply With Quote
Oct 15, 2004, 05:14 PM
 
VBScript is easy to pick up, check out VBScript in a nutshell by O'Rielley if you already have strong fundamental programming skills.

Excel automates well using VBS, but google is going to be your best resource when you need to figure out how to do something. I don't know of a good book that teaches excel automation, and Microsoft's documentation on the object model for Excel sucks.

I don't know that VBS will work on a mac, but I haven't tried it so somebody correct me if I'm wrong. I hear Excel can be automated using Python as well, so you might want to look into that for scripting instead. I use vbs at work because its a windows shop anyway and I didn't need to get anyone's permission to make changes to our production servers to run vbscripts there. For windows, you don't need the latest version. I do most of my automation using Office 2000.

Your Java experience is only going to help a little...forget everything you know about objects and remember what you learned about functions, looping, and working with arrays. If you had a C class in there somewhere, VBScript will be a breeze. If not, you may need to struggle a little at first with operations you might have assigned to a nice object to take care of in Java.

Once you get the hang of it, you can do a lot with Excel and VBS. Anything you can do in excel can be scripted. Learn a little about ADO recordsets and manipulating strings and dates in vbs and you can write a mean report writer that will generate its own sql, query a datasource, and produce as complex a report as you would want to see in Excel. Throw a scheduler behind it and you're good to go.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:00 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2