Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Problems with Macro to convert to CSV

have an excel file which I want to convert to a csv. THe
macro works fine except the resulting csv file has all
these extra commas both below and to the right of the
values.

Tried deleting the blank values below and to the right
but still no luck.

Any suggestions?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Problems with Macro to convert to CSV

Jonathan,

Press <Ctrl+<End keys together. Where do you end up?
After deleting excess rows or columns, save the file to reset the last cell.

Test again to see where the end cell is.

regards,

JohnI

"Jonathan" wrote in message
...
have an excel file which I want to convert to a csv. THe
macro works fine except the resulting csv file has all
these extra commas both below and to the right of the
values.

Tried deleting the blank values below and to the right
but still no luck.

Any suggestions?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problems with Macro to convert to CSV

I assume you mean within the source file as opposed to
the csv file.

In the source file it ends up at cell CA19993. when i
delete all the rows last cell is where it should be and
no extra commas. however i have tried this before
(deleting every row and column aside from the numbes) and
it didnt work.

what does this mean?

thanks for your help.
-----Original Message-----
Jonathan,

Press <Ctrl+<End keys together. Where do you end up?
After deleting excess rows or columns, save the file to

reset the last cell.

Test again to see where the end cell is.

regards,

JohnI

"Jonathan" wrote in message
...
have an excel file which I want to convert to a csv.

THe
macro works fine except the resulting csv file has all
these extra commas both below and to the right of the
values.

Tried deleting the blank values below and to the right
but still no luck.

Any suggestions?



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Problems with Macro to convert to CSV

Perhaps you didn't do it correctly.

assume you actual data is in A1:Z500

go to the name box in the upper left (should show the currently selected
cell like A1)

enter
501:65536<cr
this will select the entire rows, now do Edit=Delete

back to the name box, enter
AA:IV<cr
this will select the entire columns. Now do Edit=Delete

No save the file (as a normal worksheet file). This will cause excel to
interpret you deletions and reset the used region.

<cr means to hit the enter key just to be clear.

--
Regards,
Tom Ogilvy

Jonathan wrote in message
...
I assume you mean within the source file as opposed to
the csv file.

In the source file it ends up at cell CA19993. when i
delete all the rows last cell is where it should be and
no extra commas. however i have tried this before
(deleting every row and column aside from the numbes) and
it didnt work.

what does this mean?

thanks for your help.
-----Original Message-----
Jonathan,

Press <Ctrl+<End keys together. Where do you end up?
After deleting excess rows or columns, save the file to

reset the last cell.

Test again to see where the end cell is.

regards,

JohnI

"Jonathan" wrote in message
...
have an excel file which I want to convert to a csv.

THe
macro works fine except the resulting csv file has all
these extra commas both below and to the right of the
values.

Tried deleting the blank values below and to the right
but still no luck.

Any suggestions?



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Problems with Macro to convert to CSV

that fixed it, thanks.
-----Original Message-----
Perhaps you didn't do it correctly.

assume you actual data is in A1:Z500

go to the name box in the upper left (should show the

currently selected
cell like A1)

enter
501:65536<cr
this will select the entire rows, now do Edit=Delete

back to the name box, enter
AA:IV<cr
this will select the entire columns. Now do Edit=Delete

No save the file (as a normal worksheet file). This

will cause excel to
interpret you deletions and reset the used region.

<cr means to hit the enter key just to be clear.

--
Regards,
Tom Ogilvy

Jonathan wrote in message
...
I assume you mean within the source file as opposed to
the csv file.

In the source file it ends up at cell CA19993. when i
delete all the rows last cell is where it should be and
no extra commas. however i have tried this before
(deleting every row and column aside from the numbes)

and
it didnt work.

what does this mean?

thanks for your help.
-----Original Message-----
Jonathan,

Press <Ctrl+<End keys together. Where do you end up?
After deleting excess rows or columns, save the file

to
reset the last cell.

Test again to see where the end cell is.

regards,

JohnI

"Jonathan" wrote in message
...
have an excel file which I want to convert to a csv.

THe
macro works fine except the resulting csv file has

all
these extra commas both below and to the right of

the
values.

Tried deleting the blank values below and to the

right
but still no luck.

Any suggestions?



.



.



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
2003--2007 convert problems Miri Excel Discussion (Misc queries) 0 October 2nd 07 02:17 PM
Macro Problems laxnation87 Excel Discussion (Misc queries) 1 August 7th 07 05:41 PM
Excel 2007 Problems; in writing macro and convert text to colums bezl Excel Discussion (Misc queries) 2 December 22nd 06 11:20 AM
Excel 2007 Problems; in wrinting a macro and convert text bezl Excel Discussion (Misc queries) 1 December 22nd 06 10:59 AM
Macro problems Heine Excel Worksheet Functions 9 October 31st 06 11:01 AM


All times are GMT +1. The time now is 02:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"