![]() |
#1
|
|||
|
|||
![]()
Hello,
I have written a macro to split a large table into several smaller ones on separate worksheets. Once this is done, I want to put the same two sumif formulae in the same cell in each sheet. My current code, which works, uses columns as references: Code:
For Each ws In Sheets ws.Activate Range("A1:A6").EntireRow.Insert Range("F3").Formula = _ "=sumif(E:E,""<>Translation"",H:H)" Range("F4").Formula = _ "=sumif(E:E,""Translation"",H:H)" Range("E3").Value = "Proofreading" Range("E4").Value = "Translation" With Range("E3:F4") .Font.Bold = True .HorizontalAlignment = xlCenter .BorderAround Weight:=xlMedium End With Range("A1").Select Next ws Code:
Range("F3").FormulaR1C1 = _ "=SUMIF(TABLENAME[[#All],[Issue Type]],""<>Translation"",TABLENAME[[#All],[Word count]])" Thanks in advance. |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
kevinbradley57 | Word VBA | 9 | 09-21-2017 04:58 PM |
![]() |
Filip88 | Excel | 12 | 09-17-2017 06:54 AM |
Is there code for variable fill down in excel | jtp607 | Excel | 4 | 06-08-2017 11:50 AM |
![]() |
Cosmo | Word | 2 | 12-29-2015 11:54 AM |
![]() |
Officer_Bierschnitt | Excel Programming | 3 | 11-23-2015 03:30 AM |