Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ok this sucks need help with simple program

Status
Not open for further replies.

Shaun29

Programmer
Oct 22, 2008
53
US
Sub BOM()
Write #1, "txt.outputbom.txt" eof(1)
Close #1

End sub

i open CAD I run VBAIDE i put this in and the output file does not get wrote to
what am i doing wrong i have tried to open the text file

Sub BOM()

Open "BOM_TEXT.dwg" For Append As #1
Write #1, "txt.outputbom.txt" eof(1)
Close #1

End sub


and nothing works
 
You're trying to open an AutoCad .dwg file with a function that was intended to deal with ASCII text files.

That might produce unexpected results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top