Borrar filtros
Borrar filtros

Finding Next Available Column in Excel

6 visualizaciones (últimos 30 días)
John  Bowling
John Bowling el 9 de Ag. de 2016
Comentada: dpb el 9 de Ag. de 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 comentario
dpb
dpb el 9 de Ag. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by