View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Ricky M. Medley Ricky M. Medley is offline
external usenet poster
 
Posts: 18
Default a few simple newbies questions

1. in order for the sub not to modify the variable you must use byval..
ex.
Sub DontChangeMe(ByVal <variable as <type)

It doesn't matter what the name of the subs variable is, thus the point of
subs and not hardcoding regularly used routines in main code.


2. see vba help files per the application you want to learn. I've come a
long way myself.

2. see vba help files per the application you want to learn...just joking.
ThisWorkbook.Worksheets("MY worksheet").Cells(6, 1).Formula =
"=sum(A1:A5)"
NOTE:
[6,1] = Row 6, Column 1


ricky