Azzera filtri
Azzera filtri

Finding Next Available Column in Excel

6 visualizzazioni (ultimi 30 giorni)
John  Bowling
John Bowling il 9 Ago 2016
Commentato: dpb il 9 Ago 2016
I have written a program that exports data into excel, but currently overwrites what is currently in column A. I would like to write a program that is able to find the next available columns and export the data to that column. I have attached a screenshot. What the program needs to accomplish in this scenario is to see that column E contians the next available cells, and then export the data accordingly.
Thanks in advance,
John
  1 Commento
dpb
dpb il 9 Ago 2016
This is an Excel question, not Matlab...see if there's a method that returns the info directly and use ActiveX to invoke it if so. If not, best I can think of directly from Matlab would be to read the data and see how big an array is returned...this only works if know the beginning column and there aren't empty columns...oh, you can use the optional 'raw' output that will return the actual info in cell array and search within it...
There is no Matlab method directly though, as noted its an Excel question if there is a way internally that you can query.

Accedi per commentare.

Risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by