CODE
sub somecode()
othernumber = 1
somenumber = changesomenumber(othernumber)
cells(1,1) = somenumber 'the number is 2
end sub
'
'
sub changesomenumber(changethis)
thisone = changethis + 1
'''''this is the part where I send thisone back
end sub
othernumber = 1
somenumber = changesomenumber(othernumber)
cells(1,1) = somenumber 'the number is 2
end sub
'
'
sub changesomenumber(changethis)
thisone = changethis + 1
'''''this is the part where I send thisone back
end sub
I get stuck at the part where I send the variable "thisone" back to the function "somecode()". How do I return the value of "thisone"? What is the code needed? Do I need to send something else back? Many thanks for the help given