LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default VBA output to text editor

Hi,

I have the following VBA code which just is some simple For Loops and can
get the data to be written to Excel cells. But how do I get it to write to a
text editor, such as WordPad or NotePad? I need to do this rather than output
the number to Excel as there insufficient rows in Excel to hold all the data.

Sub counter()

i = 0

For a = 1 To 18
For b = 1 To 18
For c = 1 To 18
For d = 1 To 18
For e = 1 To 18
For f = 1 To 18
i = i + 1
Worksheets("Sheet1").Cells(i, 1) = a
Worksheets("Sheet1").Cells(i, 2) = b
Worksheets("Sheet1").Cells(i, 3) = c
Worksheets("Sheet1").Cells(i, 4) = d
Worksheets("Sheet1").Cells(i, 5) = e
Worksheets("Sheet1").Cells(i, 6) = f
Worksheets("Sheet1").Cells(i, 8) = i
Next
Next
Next
Next
Next
Next

End Sub

Thanks.

Stuart
 
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
Can Text Function change output text color? epiekarc Excel Discussion (Misc queries) 1 December 31st 08 02:58 AM
Output text from numbers LiAD Excel Worksheet Functions 7 December 10th 08 01:51 PM
How to output text that blinks? ZHonorable Excel Discussion (Misc queries) 1 October 28th 06 10:24 AM
add text to end of formula output mgdarkman Excel Discussion (Misc queries) 2 December 9th 05 03:51 AM
output text ktokuo Excel Programming 1 April 9th 04 03:06 AM


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