Thread: vba help please
View Single Post
  #25   Report Post  
Posted to microsoft.public.excel.programming
Jim S[_3_] Jim S[_3_] is offline
external usenet poster
 
Posts: 26
Default vba help please

Hi, the code needs to be on all one line:

If you need/want a single line of code to be on two or more lines you must
connect them with a space..then underscore...then hit return.

-Like this:

Application.Workbooks("research.xls").Worksheets _
("sheet1").Range("a1").ClearContents

-Hope this helps.

Jim S

"Coyote" wrote:

vba editor does not like something about this????


Sub Macro1()



Application.Workbooks("research.xls").Worksheets
("sheet1").Range("a1").ClearContents

End Sub