Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-22-2014, 02:31 AM
jingo jingo is offline Need help sumif with variable for VBA Windows 7 32bit Need help sumif with variable for VBA Office 2010 32bit
Novice
Need help sumif with variable for VBA
 
Join Date: Jan 2014
Posts: 1
jingo is on a distinguished road
Default Need help sumif with variable for VBA

i try to use use VBA as below but not work, can someone help me to fix it.
how we can use "</ >" with variable

numyear = Range("B3").Value
tillww = Range("D2").Value

ActiveCell.FormulaR1C1 = "=SUMIFS(C[-8],C[-4],RC[-1],C[-15]," & numyear & "C[-7], ""<= "" & tillww & ")"

Thank you
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help sumif with variable for VBA Average if and sumif jennamae Excel 4 01-17-2014 05:10 AM
Need help sumif with variable for VBA object variable or with block variable not set MJP143 Excel 1 02-11-2013 05:07 AM
Need help sumif with variable for VBA Run-time error '91': Object variable or With block variable not set tinfanide Excel Programming 2 06-10-2012 10:17 AM
Help! 'SUMIF' Formulas dave1372 Excel 2 09-08-2011 07:05 AM
Need help sumif with variable for VBA Multiple criteria in SUMIF? pumpkin head Excel 1 02-17-2006 09:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:14 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft