Hi Try 27.7 not 27,7 -----Opprinnelig melding----- Fra: excel-macros@googlegroups.com [mailto:excel-mac...@googlegroups.com] På vegne av Nwt Sendt: 1. mars 2009 21:13 Til: MS EXCEL AND VBA MACROS Emne: $$Excel-Macros$$ double variable on a formula
Hi all, i'm trying to insert a formula by vba, the code looks like this: dbl_weight = 27,7 activecell.FormulaR1C1 = "=RC[-6]*" & dbl_weight runtime error 1004 if my dbl_weight = 27 it works my excel 2003 is in italian any suggestion? Thanks, Nwt No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database: 270.11.5/1979 - Release Date: 03/01/09 17:46:00 --~--~---------~--~----~------------~-------~--~----~ ------------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com ------------------------------------------------------------------------------------- -~----------~----~----~----~------~----~------~--~---