"call symputx(cats('_',d),_n_+1);" Here I make four macro variables from dataset 'Sheet2'; Macro_Var_Name Macro_Var_Value _AAA 2 _910 3 _123 4 234 5 You see 2,3,4,5 correspond to the row number of D column in Sheet2. " urlstring= cats("#Sheet2!D",symget(cats('_',a)));" Function cats('_',a) make a string like : '_123' , '_234' , '_AAA' from Sheet1. Function symget('_AAA') means get the value of macro variable _AAA , same as '_123' , '_234' . So when a='AAA' in Sheet1, I could get macro variable _AAA 's value 2. And urlstring= "#Sheet2!D2". And I make a URL on the cell (a='AAA' in Sheet1) by "call define(_col_,'URL','#Sheet2!D2');" which redirect to Sheet2 's D2 cell.
... View more