Anthony's VBA Forum Index Anthony's VBA Forum
Where the knowledge is shared
Menu
 Anthony's VBA Forum IndexHome Page
 Anthony's VBA Forum IndexForum Index
FAQFAQ
MemberlistMemberlist
UsergroupsUsergroups
RegisterRegister
ProfileProfile
Log in to check your private messagesMessages
Log inLogin/Out

Quick Search

Advanced Search

Links
Consulting
Products

Who's Online
[ Administrator ]
[ Moderator ]


Writing Spreadsheet data to external txt file

 
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA
View previous topic :: View next topic  
Author Message
Africankid



Joined: 03 Oct 2005
Posts: 1

PostPosted: Mon Oct 03, 2005 8:03 am    Post subject: Writing Spreadsheet data to external txt file Reply with quote

Hi There!

This is a real amateur question but here goes!!

Basically I need to get data from a spreadsheet and write that data to an external file (eg a txt file on note pad).

For example if the Column A contains: 1,2,3,4,5
I can select individual cells and print them to a txt file using x= Range("A5").Value and then printing x.

But how do I select the entire column and then print each value independly? In other words can i set up a loop that changes the Range value that I need automatically- and whilst still in that loop print the current value?

Any ideas/help would be great- thanks for all your time!!
Back to top
View user's profile Send private message
Guest






PostPosted: Fri Oct 21, 2005 3:22 pm    Post subject: Reply with quote

You can use the for...next loop or the for...each loop.
Back to top
Display posts from previous:   
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group