aburamewolf
Technical User
Hi I was wondering if it was possible to obtain the value of a variable that was created/used on a different sub (0
as an example:
---------------------------------------
would it be possible to use the icnt variable? Say through:
-------------------------------------------------------
This is just a small portion of what it would do but so long as I can get inote_up(click) to use icnt as it was saved during inotes_enter() I know I can make this work.
Thanks in advance!
as an example:
---------------------------------------
Code:
Private Sub inotes_Enter()
Sheets("inbound").Activate
dim timestamp as string
dim cnt as long
timestamp = Format(Now, "mmm ddd dd yyyy hh:mm:ss AM/PM")
if inotes.text = "" then
inotes.text = timestamp
end if
icnt = len(inotes.text)
end sub
would it be possible to use the icnt variable? Say through:
Code:
Private Sub inoteup_click()
if inotes <> "" then
if inotes = icnt
MsgBox "Please Introduce A Note in Order to Save The Update", vbOKOnly, "Alert"
else
MsgBox "Saving Update", vbOKOnly, "Alert"
end if
end if
end sub
This is just a small portion of what it would do but so long as I can get inote_up(click) to use icnt as it was saved during inotes_enter() I know I can make this work.
Thanks in advance!