Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
dougb415
 
Posts: n/a
Default Exporting selected data / automation


Hello,

Like so many others, I am an Excel newbie. I was a mainframe COBOL
programmer in another life, but that was a few years back

My manager would like me to write an app that will take data from an
existing Excel spreadsheet (generated by our system), select only a
handful of columns, write out a new spreadsheet with the selected data,
and then the new spreadsheet will be used as input to a new Access
database that I will create.

1) How do I select which columns I want to export? I tried highlighting
the columns and then doing a "Save As..." but that just gave me an exact
copy of the original spreadsheet, with the columns still highlighted.

2) Is there a way to automate #1? I have no idea how often my manager
will want to run this, but i don't want to have to hand-prep the data
every time.

Thanks in advance for any help!

-Doug


--
dougb415
------------------------------------------------------------------------
dougb415's Profile: http://www.excelforum.com/member.php...o&userid=27452
View this thread: http://www.excelforum.com/showthread...hreadid=469638

  #2   Report Post  
bigwheel
 
Posts: n/a
Default

There are some parts of this question which could be difficult but to start
with, you could record the steps required using the Record New Macro option.
To select a column, click on the column header e.g. E. This will select the
whole column then click Copy then switch to a second blank workbook select
the first cell in the destination column and click paste. Repeat for the
other required columns. When finished, stop the macro recording. The
potential problem is that you mentioned that the existing spreadsheet is
"generated by our system". This, I guess, would be a new speadsheet which
will not have any macros in so you would need to copy the macro which you
recorded into the new generated sheet. Other than that and assuming the data
will always appear in the columns that you selected originally, you shouldn't
have a problem with #2

"dougb415" wrote:


Hello,

Like so many others, I am an Excel newbie. I was a mainframe COBOL
programmer in another life, but that was a few years back

My manager would like me to write an app that will take data from an
existing Excel spreadsheet (generated by our system), select only a
handful of columns, write out a new spreadsheet with the selected data,
and then the new spreadsheet will be used as input to a new Access
database that I will create.

1) How do I select which columns I want to export? I tried highlighting
the columns and then doing a "Save As..." but that just gave me an exact
copy of the original spreadsheet, with the columns still highlighted.

2) Is there a way to automate #1? I have no idea how often my manager
will want to run this, but i don't want to have to hand-prep the data
every time.

Thanks in advance for any help!

-Doug


--
dougb415
------------------------------------------------------------------------
dougb415's Profile: http://www.excelforum.com/member.php...o&userid=27452
View this thread: http://www.excelforum.com/showthread...hreadid=469638


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 data in a worksheet within a workbook Homeuser Excel Discussion (Misc queries) 2 August 21st 05 10:49 PM
linking selected data between Excell sheets Alexandra Excel Discussion (Misc queries) 3 May 19th 05 12:05 PM
Exporting Data to Excel-Date Format Changed Nick B Excel Discussion (Misc queries) 3 May 3rd 05 12:43 PM
exporting data abbylulu2 Excel Discussion (Misc queries) 1 March 19th 05 10:25 AM
exporting excel data into visio Matt21 Excel Discussion (Misc queries) 0 January 11th 05 09:11 PM


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