Here is the basic issue:
first subroutine defines value of variable.
second subroutine puts that value in a specific location.
example:
sub first
x = 2
second
end sub
sub second
ActiveCell.Select
ActiveCell.Next.Next.Next.Next.Next.Next.Next.Next.Next.Next.Next.Next = x
end sub
How do I write this correctly, so sub second knows to use the value from sub first. Or is having a sub inside a sub a problem?
Thanks-
-Dan
first subroutine defines value of variable.
second subroutine puts that value in a specific location.
example:
sub first
x = 2
second
end sub
sub second
ActiveCell.Select
ActiveCell.Next.Next.Next.Next.Next.Next.Next.Next.Next.Next.Next.Next = x
end sub
How do I write this correctly, so sub second knows to use the value from sub first. Or is having a sub inside a sub a problem?
Thanks-
-Dan