Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Formula Problem 2

Posted on 2013-11-03
1
222 Views
Last Modified: 2013-11-03
Hi All,

I have this formula that I the compiler does not like:

Worksheets("Pre").Range(wraps.Address).Offset(0,-3).Formula = "=if(" & B1 & wraps.row& "*" & B2 & wraps.Row& * & B3 & wraps.Row& * & B4 & wraps.row& * & B5 & wraps.Row& ",1,0)"

The compiler is highlighting "*" in yellow.    I am pretty sure that I have the variables all defined correctly.

I am just trying to multiply.  

Any idea?

thanks,
0
Comment
Question by:BostonBob
1 Comment
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 39620744
Worksheets("Pre").Range(wraps.Address).Offset(0, -3).Formula = "=if(" & B1 & wraps.Row & "*" & B2 & wraps.Row & "*" & B3 & wraps.Row & "*" & B4 & wraps.Row & "*" & B5 & wraps.Row & ",1,0)"
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Limit the # times a macro code will run 14 50
Excel 2016 - Edit Items in Custom Sort Level 5 19
MS Excel Formula Help 3 32
Getting rid of #VALUE! 7 22
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question