ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Print Command (https://www.excelbanter.com/excel-discussion-misc-queries/151828-print-command.html)

M&M[_2_]

Print Command
 
I developed a macro that writes a text file from excel to notepad.
The data in it needs to be displayed in the text file in a formatted way.

I am using the print command, however this prints my each cell of data in a
vertical
list. I need it to print this to the text file in a horizontal line. EXample:
Instead of:

DATA1
DATA2
DATA3
DATA4

I need:
DATA1, DATA2, DATA3, DATA4



Any Ideas?????????????????Highly appreciated

challa prabhu

Print Command
 
Hi,

You must transpose the data before printing to the Notepad application.

Challa Prabhu

"M&M" wrote:

I developed a macro that writes a text file from excel to notepad.
The data in it needs to be displayed in the text file in a formatted way.

I am using the print command, however this prints my each cell of data in a
vertical
list. I need it to print this to the text file in a horizontal line. EXample:
Instead of:

DATA1
DATA2
DATA3
DATA4

I need:
DATA1, DATA2, DATA3, DATA4



Any Ideas?????????????????Highly appreciated



All times are GMT +1. The time now is 01:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com