View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
aking1987[_2_] aking1987[_2_] is offline
external usenet poster
 
Posts: 1
Default Defining a variable within a sub...


Code
-------------------

Sub EXAMPLe
Dim cellalphanumber As String
If SomeCondition=True Then
EXAMPLE1
cellalphanumber = "E"
Else
EXAMPLE1
cellalphanumber = "D"
End If

END SUB

SUB EXAMPLE1

msgbox cellalphanumber
END SU
-------------------

can you see where my problem is

--
aking198
-----------------------------------------------------------------------
aking1987's Profile: http://www.excelforum.com/member.php...fo&userid=1539
View this thread: http://www.excelforum.com/showthread.php?threadid=27731