VBA to write cells out to a file

  • Thread starter Thread starter tmb
  • Start date Start date
T

tmb

I want to...

open new file
check cell data (If data="xyz" then goto close file or whatever)
write cell data
write a string
move to next cell
check cell data (If data="xyz" then goto close file or whatever)
write cell data
write a string
etc
close file

can anyone give me sample code snippit to...
- create/open a file
- check cell data
- branch on results
- write cell data
- write a string
- close file

thanks for any help
 
You can use the macro recorder to create some of this code as you
perform the steps manually. Then, edit the generated code.

If you get stuck, post another question, with detail about the layout of
your workbook, the code you have created.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top