PC Review


Reply
Thread Tools Rate Thread

Best way to learn to programm with Excel

 
 
BTNA
Guest
Posts: n/a
 
      27th Apr 2007
Hi all,

I am looking for resources where I can quickly learn some basic
programming with Excel. If this is not the right group to ask this
question, please let me know. I am basically looking to create nice
reports out of a flat file with columns. I don't need it to be too
fancy but I need to be able to create nice columns with some nice
formatting. My flat file would look like:

header1;header2;header3
0;1;2
0;4;5
0;3;5

1;3;4
1;2;6
1;5;6
2;5;6

2;8;9

Header1 will alwys be either 0,1,2 and I would need to be able to sum
the second and third columns for each header1 and so on.

Can you point me to a good easy book and or web page resource where I
can learn to do this?

Thanks in advance,

BTNA

 
Reply With Quote
 
 
 
 
Susan
Guest
Posts: n/a
 
      27th Apr 2007
one of the best ways to learn to do what you want is..........

start a new, blank workbook
up in the toolbar, choose Tools, Macro, RecordNewMacro
save the macro in "this workbook"
then go thru the workbook & format everything the way you want it
column widths, coloring, putting in the formulas @ the top of the
headers: =sum(b2:b25) etc.
then stop the macro recorder
up in the toolbar, choose Tools, Macro, Visual Basic Editor
this will open up a new window, where the code you just recorded will
be written - look in Module1.
recording code is not the most efficient code, but it works & is good
to help you learn.

copy the entire code
open a new workbook
open the VB editor in the new workbook
paste the code in a new module (up in the top VB editor toolbar use
Insert, Module)
close the old workbook
VB editor toolbar = Run, Run Macro
look @ your new workbook - is it formatted the same way as the first
one?


susan


On Apr 27, 2:47 pm, BTNA <beaville...@comcast.net> wrote:
> Hi all,
>
> I am looking for resources where I can quickly learn some basic
> programming with Excel. If this is not the right group to ask this
> question, please let me know. I am basically looking to create nice
> reports out of a flat file with columns. I don't need it to be too
> fancy but I need to be able to create nice columns with some nice
> formatting. My flat file would look like:
>
> header1;header2;header3
> 0;1;2
> 0;4;5
> 0;3;5
>
> 1;3;4
> 1;2;6
> 1;5;6
> 2;5;6
>
> 2;8;9
>
> Header1 will alwys be either 0,1,2 and I would need to be able to sum
> the second and third columns for each header1 and so on.
>
> Can you point me to a good easy book and or web page resource where I
> can learn to do this?
>
> Thanks in advance,
>
> BTNA



 
Reply With Quote
 
Susan
Guest
Posts: n/a
 
      27th Apr 2007
actually, btna, you don't even have to open a new workbook & paste the
code.
just insert a new worksheet
while on the NEW worksheet,
Tools, Macro, Macros
& choose the one you just recorded
the new worksheet will now be formatted the way you did the previous
one.
worked for me
hope this helps!
susan



On Apr 27, 3:47 pm, Susan <bogenex...@aol.com> wrote:
> one of the best ways to learn to do what you want is..........
>
> start a new, blank workbook
> up in the toolbar, choose Tools, Macro, RecordNewMacro
> save the macro in "this workbook"
> then go thru the workbook & format everything the way you want it
> column widths, coloring, putting in the formulas @ the top of the
> headers: =sum(b2:b25) etc.
> then stop the macro recorder
> up in the toolbar, choose Tools, Macro, Visual Basic Editor
> this will open up a new window, where the code you just recorded will
> be written - look in Module1.
> recording code is not the most efficient code, but it works & is good
> to help you learn.
>
> copy the entire code
> open a new workbook
> open the VB editor in the new workbook
> paste the code in a new module (up in the top VB editor toolbar use
> Insert, Module)
> close the old workbook
> VB editor toolbar = Run, Run Macro
> look @ your new workbook - is it formatted the same way as the first
> one?
>
>
> susan
>
> On Apr 27, 2:47 pm, BTNA <beaville...@comcast.net> wrote:
>
>
>
> > Hi all,

>
> > I am looking for resources where I can quickly learn some basic
> > programming with Excel. If this is not the right group to ask this
> > question, please let me know. I am basically looking to create nice
> > reports out of a flat file with columns. I don't need it to be too
> > fancy but I need to be able to create nice columns with some nice
> > formatting. My flat file would look like:

>
> > header1;header2;header3
> > 0;1;2
> > 0;4;5
> > 0;3;5

>
> > 1;3;4
> > 1;2;6
> > 1;5;6
> > 2;5;6

>
> > 2;8;9

>
> > Header1 will alwys be either 0,1,2 and I would need to be able to sum
> > the second and third columns for each header1 and so on.

>
> > Can you point me to a good easy book and or web page resource where I
> > can learn to do this?

>
> > Thanks in advance,

>
> > BTNA- Hide quoted text -

>
> - Show quoted text -



 
Reply With Quote
 
ilia
Guest
Posts: n/a
 
      28th Apr 2007
What you didn't mention is whether or not you are already familiar
with object-oriented programming. If you are, this is the site you
want:

http://www.microsoft.com/downloads/d...3-4848dda796e4

Of course this is also available in help files.

One way to think of it is: anything you use in Excel is a programmable
object. Anything you do in Excel can be expressed as a series of
commands acting upon the objects, their methods and properties. Your
main goal is to learn some OOP techniques, and then learn the object
model, or those portions of it that are pertinent to you.


On Apr 27, 2:47 pm, BTNA <beaville...@comcast.net> wrote:
> Hi all,
>
> I am looking for resources where I can quickly learn some basic
> programming with Excel. If this is not the right group to ask this
> question, please let me know. I am basically looking to create nice
> reports out of a flat file with columns. I don't need it to be too
> fancy but I need to be able to create nice columns with some nice
> formatting. My flat file would look like:
>
> header1;header2;header3
> 0;1;2
> 0;4;5
> 0;3;5
>
> 1;3;4
> 1;2;6
> 1;5;6
> 2;5;6
>
> 2;8;9
>
> Header1 will alwys be either 0,1,2 and I would need to be able to sum
> the second and third columns for each header1 and so on.
>
> Can you point me to a good easy book and or web page resource where I
> can learn to do this?
>
> Thanks in advance,
>
> BTNA



 
Reply With Quote
 
 
 
Reply

Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recommend book or site to learn Outlook 2007/VS 2008 VSTO programm Ken Microsoft Outlook Form Programming 10 8th Jan 2009 01:20 PM
I need to learn excel, i bought 3 books but i need excel on my co. =?Utf-8?B?dmFsZXJpZQ==?= Microsoft Excel New Users 1 19th Apr 2005 03:40 AM
what is the best way to learn excel? sokevin Microsoft Excel Misc 3 4th Feb 2004 11:39 PM
excel crash//this programm perfom illegal operation ----nks----- Microsoft Excel Crashes 2 17th Oct 2003 10:13 AM
how to set excel pagebreak in programm chengquan Microsoft Excel Programming 0 12th Aug 2003 10:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:55 AM.