View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
marlea[_5_] marlea[_5_] is offline
external usenet poster
 
Posts: 1
Default Macro to combine data based on IF,THENs?


Yay, I think my change works:

' Concatenate data and populate Sheet2...
If ansKey = "" Then
newString = myTitle & ", " & pgRng
Else
newString = myTitle & ", " & pgRng & ", " & ansKey
End I

--
marle
-----------------------------------------------------------------------
marlea's Profile: http://www.excelforum.com/member.php...fo&userid=2620
View this thread: http://www.excelforum.com/showthread.php?threadid=46715