Re: Need help with a question.



On Jun 28, 12:45 pm, "Erwin van Koppen" <inva...@xxxxxxxxxxxxxxx>
wrote:
"Trev" wrote:

How come these errors only appear when I use Sub {   } ?

For one thing, you should use lowercase: sub { }

open (BOO, "<blah2.txt");
@lines=<TMP>;

You open BOO, but use TMP (which is not opened).

And, you don't check to see of BOO can be opened.

Fix these things, then it should run. However, I doubt it will do what you
want it to do...

Thanks, I've made the changes and so far so good.
.



Relevant Pages

  • Re: Need help with a question.
    ... "Trev" wrote: ... How come these errors only appear when I use Sub? ... you should use lowercase: ... Fix these things, then it should run. ...
    (comp.lang.perl.misc)
  • Re: redim preserve multidimen array
    ... > encapsulating a structure that was, in fact, an array of arrays. ... Private SizeX As Long, SizeY As Long ... Public Sub ReDimension ... Dim tmp As Variant ...
    (microsoft.public.vb.syntax)
  • RE: Excel Row/Column Merge
    ... Dim i As Long, nr As Long, col As Integer, nc As Integer ... Dim c, d As String, tmp, count As Long, inf ... When you are happy use the next sub to delete the dupilcate rows. ... the code will work on the active sheet in the workbook. ...
    (microsoft.public.excel)
  • Re: Excel Row/Column Merge
    ... Dim i As Long, nr As Long, col As Integer, nc As Integer ... Dim c, d As String, tmp, count As Long, inf ... When you are happy use the next sub to delete the dupilcate rows. ... Then I run the second macro. ...
    (microsoft.public.excel)
  • Re: Inserting blank rows plus using Sum
    ... Dim sum_of_range, tmp ... Call the Sub after you insert your two blank rows. ... If Cells(row, DataColumn) CellsThen ...
    (microsoft.public.excel.newusers)