Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-05-2015, 05:01 AM
saurabhlotankar saurabhlotankar is offline Insert formulas in VBA code Windows XP Insert formulas in VBA code Office 2010 32bit
Novice
Insert formulas in VBA code
 
Join Date: May 2015
Posts: 29
saurabhlotankar is on a distinguished road
Default Insert formulas in VBA code

Hi All,



First of all thank so much everyone for assisting me learing VBA coding. I have started doing it on my own as a beginner.
I am creating a file in which i am done with half of my work but am stuck at one point where i need to enter countif formula in VBA code.

I have attached my working file here.
  • First i want to add a column ahead of column"C"(It will be "D") and Give header to it as "Active/Inactive"
  • From D2 onwards till the end(in this example its D10) i want to put countif formula to count number of "True" in each row. So in D2 the formula will be=countif(E2:M2,"True") and so on till the end
  • In the same way i want to add one more column in the beginning that will become column "M". and from A2 onwards i want to put formula =C2&B2
I want a VBA code for these two steps. If you could help with in it then that will be really helpful.

Thanks
Attached Files
File Type: xlsx Book1.xlsx (8.5 KB, 19 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert formulas in VBA code VBA code for Microsoft Word macro — select text and insert footnote ndnd Word VBA 10 01-06-2015 01:47 PM
Help with IF or ELSE Formulas tsaladyga Excel 4 07-23-2014 09:04 AM
Search and replace/insert HTML code into Master File using tags dave8555 Excel 2 02-23-2014 03:51 PM
Need help with formulas please paul_pearson Excel 0 03-20-2013 06:51 AM
Insert formulas in VBA code IF Formulas mizzamzz Excel 1 07-08-2010 02:32 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:20 PM.


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