![]() |
|
#1
|
|||
|
|||
![]()
Option Explicit
Sub MacroTry1() ' ' MacroTry1 Macro Dim Specifiedrange As Range Set Specifiedrange = Application.InputBox("Specify the range:", Type:=8) Specifiedrange.Name = "Table" ActiveCell.FormulaR1C1 = "=COUNTIF(Table,"">0"")" Range("E2").Select ActiveCell.FormulaR1C1 = "=COUNT(Table)" Range("F2").Select ActiveCell.FormulaR1C1 = "=RC[-1]-RC[-2]" Range("D3").Select Set Specifiedrange = Nothing '<--- ???? End Sub |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
welcometocandyland | Word VBA | 4 | 02-08-2017 06:53 PM |
![]() |
qrcode | Word | 3 | 05-26-2015 06:38 AM |
![]() |
gerrymac | Word VBA | 6 | 07-26-2014 12:19 AM |
![]() |
rbaldwin | Word VBA | 3 | 03-14-2012 02:31 PM |