Spreadsheet.ReplaceMD
This function replaces the missing data in the specified range of variables in the spreadsheet.
SVB Example
Replacing missing data:
Option Base 1 Option Explicit Sub Main Dim spr As Spreadsheet 'assigns the spreadsheet adstudy.sta to the object spr Set spr = Spreadsheets.Open(Path & "\examples\datasets\weight.sta") 'sets the spreadsheet to visible spr.Visible = True 'replaces missing data for variables 1 to 3 and use 'variable 2 as a weight variable, 'from which the new value will be calculated spr.ReplaceMD("1-3",,,,,2) End Sub
Copyright © 2020. Cloud Software Group, Inc. All Rights Reserved.