View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Concatenate with Underscore in formula

Hi All.....

I am trying to use VBA to place a formula in a cell that is a concatenation
of two cells using an underscore between them. The formula works fine when
used on the sheet, but VBA balks at the underscores.......is there some
special combination of characters to allow the underscore.....

My code reads something like this

formula = "=A1&"_"&B1"

Any help would be appreciated,
Vaya con Dios,
Chuck, CABGx3