PC Review


Reply
Thread Tools Rate Thread

Basic Macro Question (Urgent!)

 
 
=?Utf-8?B?SkJZb3VuZw==?=
Guest
Posts: n/a
 
      7th Jul 2007
As a beginner, I am currently writing the VBA program. I have some problems,
hope you can help me to solve these problems:

1. I have a set of data in the worksheet which has 100 columns with about
200 rows. I want to make them all together by each row with comma between
each data.
2. After that, how can I convert it to csv.format
Many thanks

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      7th Jul 2007
Excel can do that without any code

do file=>Saveas and for file type choose CSV.

if you need code, turn on the macro recorder while you do it manually.

--
Regards,
Tom Ogilvy


"JBYoung" wrote:

> As a beginner, I am currently writing the VBA program. I have some problems,
> hope you can help me to solve these problems:
>
> 1. I have a set of data in the worksheet which has 100 columns with about
> 200 rows. I want to make them all together by each row with comma between
> each data.
> 2. After that, how can I convert it to csv.format
> Many thanks
>

 
Reply With Quote
 
=?Utf-8?B?SkJZb3VuZw==?=
Guest
Posts: n/a
 
      7th Jul 2007
Hi Tom,

Thanks.

However, as mentioned in question 1, how can I make a set of numbers
together by writing the macro? e.g., 123 123 123 = 123,123,123 and ensure it
will stop in the data end.

Regards,
JB

"Tom Ogilvy" wrote:

> Excel can do that without any code
>
> do file=>Saveas and for file type choose CSV.
>
> if you need code, turn on the macro recorder while you do it manually.
>
> --
> Regards,
> Tom Ogilvy
>
>
> "JBYoung" wrote:
>
> > As a beginner, I am currently writing the VBA program. I have some problems,
> > hope you can help me to solve these problems:
> >
> > 1. I have a set of data in the worksheet which has 100 columns with about
> > 200 rows. I want to make them all together by each row with comma between
> > each data.
> > 2. After that, how can I convert it to csv.format
> > Many thanks
> >

 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      7th Jul 2007
If you doing that to write a CSV file, again, you don't have to. Excel does
it for you.

If you want to do it the hard way:

http://www.cpearson.com/excel/imptext.htm

If you don't want to write a CSV file with the results, where do you want to
place the data? Adapt the code above to put it there.

--
Regards,
Tom Ogilvy


"JBYoung" wrote:

> Hi Tom,
>
> Thanks.
>
> However, as mentioned in question 1, how can I make a set of numbers
> together by writing the macro? e.g., 123 123 123 = 123,123,123 and ensure it
> will stop in the data end.
>
> Regards,
> JB
>
> "Tom Ogilvy" wrote:
>
> > Excel can do that without any code
> >
> > do file=>Saveas and for file type choose CSV.
> >
> > if you need code, turn on the macro recorder while you do it manually.
> >
> > --
> > Regards,
> > Tom Ogilvy
> >
> >
> > "JBYoung" wrote:
> >
> > > As a beginner, I am currently writing the VBA program. I have some problems,
> > > hope you can help me to solve these problems:
> > >
> > > 1. I have a set of data in the worksheet which has 100 columns with about
> > > 200 rows. I want to make them all together by each row with comma between
> > > each data.
> > > 2. After that, how can I convert it to csv.format
> > > Many thanks
> > >

 
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
Urgent Macro question ??? =?Utf-8?B?UmljaGll?= Microsoft Excel Discussion 1 19th Feb 2007 06:09 PM
Help! Basic Macro Question? =?Utf-8?B?Sm9obiBIdWdoZXM=?= Microsoft Excel Programming 2 30th Aug 2006 08:10 PM
Urgent Help Visual Basic =?Utf-8?B?TGVlQW5uZQ==?= Microsoft Excel Programming 3 21st Jul 2006 12:00 PM
Very basic macro question. Fn0rd Microsoft Excel Programming 3 28th Nov 2003 11:22 AM
URGENT - Visual Basic Out of Memory sgl Microsoft Excel Programming 3 26th Sep 2003 06:15 PM


Features
 

Advertising
 

Newsgroups
 


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