I get the active sheet, then the active range(a single cell in this case), then the value of that cell, then I convert the value to upper case, then I set that to the value of the cell. I am not coming out the other end with an upper case cell.
I have tried both converting the cell to upper case(this gives me an error), and also converting the value of the cell to upper case, then setting that to the new cell value.
function makeUC() {
  //get sheet
  var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
  //get active range (selected cells)
  var cell = sheet.getActiveRange();
  //get UI for alert functionality
  var ui = SpreadsheetApp.getUi();
  //for testing
  //ui.alert(range.getValue());
  //get value of active cell
  var val = cell.getValue();
  //test 1 - convert value to upper case/// not working. TypeError: Cannot 
  find function toUpperCase in object Range.
  cell.toUpperCase();
  //test 2 part 1 - convert value to upper case/// not working
  val.toUpperCase();
  //test 2 part 2 - set range to new value
  cell.setValue(val);
}
error messages in code section
 
     
    