Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default print or row like command in excel vba

Dear Experts - first if you respond many thanks and im sorry if this is a
poor question

i have an excel sheet with many rows and i would like to use a loop which
processes the row in a similar manner to a classic Print statement possibly
creating an ascii file of the data , i know excel vba has a row statement
which i would like to use - even if its printing rows via a message box - to
me the sheet i work on rows are like database records and as such i want to
treat them as such - can any one help

my row numbers are row 4 to 1443 - not that i guess that helps

my logic is something like ;

for rows
do
print entire row to output file
loop
--
C Ward
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default print or row like command in excel vba

Why not just copy your data to a new workbook and then do

Files=SaveAs

and select the format you want, such as CSV or Tab Delimited or Space
Delimited.

Turn on the macro recorder while you do it manually if you want to get code
to do it.

--
Regards,
Tom Ogilvy


"christopher ward" wrote in
message ...
Dear Experts - first if you respond many thanks and im sorry if this is a
poor question

i have an excel sheet with many rows and i would like to use a loop which
processes the row in a similar manner to a classic Print statement

possibly
creating an ascii file of the data , i know excel vba has a row statement
which i would like to use - even if its printing rows via a message box -

to
me the sheet i work on rows are like database records and as such i want

to
treat them as such - can any one help

my row numbers are row 4 to 1443 - not that i guess that helps

my logic is something like ;

for rows
do
print entire row to output file
loop
--
C Ward



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default print or row like command in excel vba

Dear Tom

Yes i see this method but its not quite what i want let me explain a little
more

My user will craete the data file which is then to be sent to a sql server
database and finally analysis services - we currently use data transformation
services in sql server which can bring directly in from an excel spreedsheet
- not if sheet has an automatic macro though hence an error - i thought maybe
creating a simple ascii file might solve this issue and allow us to bring the
data in using the pre built wizard
--
C Ward


"Tom Ogilvy" wrote:

Why not just copy your data to a new workbook and then do

Files=SaveAs

and select the format you want, such as CSV or Tab Delimited or Space
Delimited.

Turn on the macro recorder while you do it manually if you want to get code
to do it.

--
Regards,
Tom Ogilvy


"christopher ward" wrote in
message ...
Dear Experts - first if you respond many thanks and im sorry if this is a
poor question

i have an excel sheet with many rows and i would like to use a loop which
processes the row in a similar manner to a classic Print statement

possibly
creating an ascii file of the data , i know excel vba has a row statement
which i would like to use - even if its printing rows via a message box -

to
me the sheet i work on rows are like database records and as such i want

to
treat them as such - can any one help

my row numbers are row 4 to 1443 - not that i guess that helps

my logic is something like ;

for rows
do
print entire row to output file
loop
--
C Ward




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
where is the PRINT command in Excel in Vista? Dale New Users to Excel 2 August 5th 09 01:07 PM
What is the command-line print switch in Excel? eeidfn Excel Discussion (Misc queries) 5 February 17th 06 11:59 PM
Change Print Command or add a new print command Daniel R. Young Excel Programming 1 November 11th 05 05:14 AM
command button in excel will move when print. [email protected] Excel Discussion (Misc queries) 1 December 29th 04 03:53 PM
Why the command button in excel will move when print. TSH Excel Programming 1 November 24th 04 05:54 AM


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