Using Parameters in Macros

  • Thread starter Thread starter lj
  • Start date Start date
L

lj

Is it possible to get the following statement to work? I want to
be able to name a parameter in Visual Basic and then use the parameter
to reference a specific cell in the spreadsheet when the macro is run,
haven't been able to get this to work so far, any suggestions?


Sub Macro2()


Red = 2
If Range("B"Red) <> "" Then
Worksheets.Add.Move]

Endsub
 
Back
Top