View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ExcelMonkey[_133_] ExcelMonkey[_133_] is offline
external usenet poster
 
Posts: 1
Default Passing Number Format to a Variable

I want to pass a number format to a variable. The following code is no
working:

Sub CurrencyPick()
Dim CurrencyFormat As String
CurrencyFormat = [($"US" #,##0_);[Red]($#,##0)]

I am getting a type mismatch error. I think there is a problem wit
either a lack of quotes or brackes. Or my variable declaration is o
the wrong type.

Can anyone tell me what wrong here?

Thank-you

--
Message posted from http://www.ExcelForum.com