Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
whatageek
 
Posts: n/a
Default Macros and saving .csv files

Before I can import data from a .csv file into a database, many columns
need to be formatted or values need to be replaced. Previously, this
manipulation used to be done manually and the import worked fine. I
have since recorded a macro to automate all the changes. But now the
import seems to be finding lots of empty records at the end and I have
to kill the import. How to save the .csv file so that blank rows are
not included in the import?

  #2   Report Post  
Posted to microsoft.public.excel.misc
Excel user
 
Posts: n/a
Default Macros and saving .csv files

Try this..before you run the macro position the cursor to the row below the
last row containing data you wish to import. Press shift-ctrl-End at the same
time. Go to Edit clear All on the toolbar to clear all unused data. Run the
macro to create the csv. Hope this helps.
"whatageek" wrote:

Before I can import data from a .csv file into a database, many columns
need to be formatted or values need to be replaced. Previously, this
manipulation used to be done manually and the import worked fine. I
have since recorded a macro to automate all the changes. But now the
import seems to be finding lots of empty records at the end and I have
to kill the import. How to save the .csv file so that blank rows are
not included in the import?


  #3   Report Post  
Posted to microsoft.public.excel.misc
whatageek
 
Posts: n/a
Default Macros and saving .csv files

Thanks for pointing me in the right direction. Your response gave me
the missing pieces to the puzzle. The problem is fixed....thank you,
thank you!

Excel user wrote:
Try this..before you run the macro position the cursor to the row below the
last row containing data you wish to import. Press shift-ctrl-End at the same
time. Go to Edit clear All on the toolbar to clear all unused data. Run the
macro to create the csv. Hope this helps.
"whatageek" wrote:

Before I can import data from a .csv file into a database, many columns
need to be formatted or values need to be replaced. Previously, this
manipulation used to be done manually and the import worked fine. I
have since recorded a macro to automate all the changes. But now the
import seems to be finding lots of empty records at the end and I have
to kill the import. How to save the .csv file so that blank rows are
not included in the import?



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
Saving custom toolbars with macros to work on other computers jpw48 Excel Discussion (Misc queries) 11 August 29th 07 01:09 AM
Saving a workbook separately to its macros PipTT Excel Discussion (Misc queries) 0 February 1st 06 10:44 PM
saving with macros in excell wullie anderson Excel Discussion (Misc queries) 1 September 21st 05 07:01 PM
Saving Macros Gerald Excel Discussion (Misc queries) 1 August 19th 05 02:28 PM
Macros making file saving extremely slow. Donald Speirs Excel Discussion (Misc queries) 1 January 20th 05 10:10 PM


All times are GMT +1. The time now is 09:48 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"