Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Macro, Persoanl Work book and CSV workbooks

Hello NG,
A couple of questions please first off I can't seem to save a macro in CSV
type work book, is this a feature of Excel or am I doing this wrong?
And secondly how do I create a personal work book so I can use macros in any
opened work book.
I create a new work once a week and need to upload the file as a CSV to the
main office but I don't know the proper way to say macros;-|
Any suggestions please
TIA
James


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Macro, Persoanl Work book and CSV workbooks

A CSV file is a textfile, so you can't save macros (or formatting) to a CSV
file. It is used to transport data.

open the workbook that contains the data you want to save in a CSV

make the page with the data active.

do Files=Saveas and in the file type dropdown at the bottom choose CSV.

Click OK.

Now close the workbook without saving. (it was already saved).

Note that a CSV only will contain data from the activesheet. (it is a single
sheet format)


To create a personal.xls, go to tools=Macro=Record a new macro. It should
ask if you want to save the macro in the personal workbook. Choose yes.
Select a few cells, turn off recording.

You should now have a personal.xls You can see it by going to the VBE and
it is in the project explorer.

Whenever you open Excel it should be opened as well, but it is hidden
(Window = Unhide).

----------
If you want to export code, you can go into the project explorer in the vbe,
right click on a module and choose export. this will put a copy of the code
in a .Bas file. This is a text file as well.

--
Regards,
Tom Ogilvy




James Agostinho wrote in message
ink.net...
Hello NG,
A couple of questions please first off I can't seem to save a macro in

CSV
type work book, is this a feature of Excel or am I doing this wrong?
And secondly how do I create a personal work book so I can use macros in

any
opened work book.
I create a new work once a week and need to upload the file as a CSV to

the
main office but I don't know the proper way to say macros;-|
Any suggestions please
TIA
James




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Macro, Persoanl Work book and CSV workbooks

Thanks for the info on the CSV files, I didn't know about the file formats
for them.
And when I get to work in the morning I'll try t he one for the personal
workbook.
Thanks Again.
James
"Tom Ogilvy" wrote in message
...
A CSV file is a textfile, so you can't save macros (or formatting) to a

CSV
file. It is used to transport data.

open the workbook that contains the data you want to save in a CSV

make the page with the data active.

do Files=Saveas and in the file type dropdown at the bottom choose CSV.

Click OK.

Now close the workbook without saving. (it was already saved).

Note that a CSV only will contain data from the activesheet. (it is a

single
sheet format)


To create a personal.xls, go to tools=Macro=Record a new macro. It

should
ask if you want to save the macro in the personal workbook. Choose yes.
Select a few cells, turn off recording.

You should now have a personal.xls You can see it by going to the VBE and
it is in the project explorer.

Whenever you open Excel it should be opened as well, but it is hidden
(Window = Unhide).

----------
If you want to export code, you can go into the project explorer in the

vbe,
right click on a module and choose export. this will put a copy of the

code
in a .Bas file. This is a text file as well.

--
Regards,
Tom Ogilvy




James Agostinho wrote in message
ink.net...
Hello NG,
A couple of questions please first off I can't seem to save a macro in

CSV
type work book, is this a feature of Excel or am I doing this wrong?
And secondly how do I create a personal work book so I can use macros in

any
opened work book.
I create a new work once a week and need to upload the file as a CSV to

the
main office but I don't know the proper way to say macros;-|
Any suggestions please
TIA
James






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
Macro shared work book Brian Excel Discussion (Misc queries) 2 June 26th 08 12:13 PM
macro for work book Daniel Charts and Charting in Excel 1 August 12th 07 12:04 AM
I was messing arround with the VBA and now I get the macro warning when I open the work book but when... Marc New Users to Excel 2 June 6th 05 08:08 AM
Is there away to keep "auto save" from jumping to the first work sheet in the work book? Marc New Users to Excel 2 April 21st 05 01:27 AM
close work book via macro Sunil Patel Excel Programming 3 January 7th 04 09:56 PM


All times are GMT +1. The time now is 06:54 AM.

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"