How can I work on many ranges in the same time

I want to use the function SetBorders to many ranges not on an excel file
SetBorders(sheet1,'H','P',startRange,endRange);
SetBorders(sheet1,'E','P',startRange,startRange);
it works when I call the function for every range
but I want to call the function just one time, so how can I give this function many ranges ?

1 Comment

This does not appear to be a MATLAB question.
SetBoarders appears to be a method for Excel worksheet Cells object. It is not a MATLAB function. It appears to work on a cell collection, but it is not obvious that what-ever SetBorders you have found is working on cell collections.

Answers (0)

This question is closed.

Products

Asked:

on 4 May 2019

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!