View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Jean-Yves[_2_] Jean-Yves[_2_] is offline
external usenet poster
 
Posts: 253
Default EVERY SHEET ADDED = 1.5 MEGAS... I´VE GOT A PROBLEM!!!!!!

Hi Carlos,

I remember that there was a problem/bug when copying sheets. The VBA name of
the sheets becomes as wel sheet11, sheet111,etc
For your button, create a new custom toolbar and add a button.
Regards
JY

"cbm" wrote in message
oups.com...
Thanks, thats what i tried and copying only the data it works, but
doesn´t when i copy the whole sheet in the same or other book. It´s a
pity becouse i like the new datasheets with the finish button (it
generates a nex sheet called name+1 and deletes de data from de
original datasheet) so at the end i deleted all the macros in the data
sheet and insert buttons in the report sheet so as when i copy the data
sheet only the info is copied and the file grows 100kb for each new
sheet.

THANKS A LOT

Jean-Yves ha escrito:

Hi Carlos,
What if you add a new blank sheet, then copy the data. Is is still 1.5 mb
?
Regards
JY
"cbm" wrote in message
ps.com...
Hi, i have a command button in a sheet to copy the sheet in the same
book with a correlative name, and deleting the cells named "variables"
(so the original sheet keeps on being the same one (It has 260 cells in
a column, this values go in the same sheet to a unique row from which
this values are processed in a different sheet)

I have automatized the macro to delete the command button in new sheets
(i don´t know how to delete the module in new sheets, but it doesn´t
seem to be the problem as when i do it "by hand" (not automatized)
keeps on adding 1.5 megas for every new sheet.

I´ve also tried to minimize the formats, new sheet only has 270 cells
with a grey background

Any idea about how to reduce the 1.5 megas whic are added to the book
with every new sheet???

Right now the system hasn´t memory enough as soon as 14 sheets are
generated, and we use to generate around 30.000 sheets every year


THANKS A LOT

PD: I apologize for my english, but there was a long time i didn´t use
it. I´ll copy it also in castellano:
Perdonad, lo había comenzado pensando en otra cosa, cuando el asunto
realmente es el tamaño del libro. Os copio las preguntas que me han
ido surgiendo:

Buenas, tengo un problema, cada vez que hago una copia de una hoja a
través de un command button que las guarda de forma correlativa en el
mismo libro, el tamaño del libro me aumenta 1,5 megas (se supone que
a lo largo del año se generan 30.000 hojas, peta fijo), y eso que es
una hoja con poquita información, asi que me imagino que será debido
a que copia la macro.


He metido esta macro en el command button y borra el objeto, pero al
meterme en el VBA veo que realmente no esta el objeto pero el código
sigue ahi.


newSheet.OLEObjects.Delete


¿Alguna sugerencia?


Bufff, he probado a borrarlo a mano y la verdad es que no gano casi
nada, tambien he borrado lineas y formatos innecesarios, ¿alguna
solucion? me veo que no va a ser operativo si el libro aumenta a un
mega por hoja :(


La verdad es que cada vez lo veo mas complicado, me faltan recursos en
cuanto llego a la hoja 14 :(
La hoja en concreto recoge informacion de 260 celdas de una columna a



las que he llamado variables, pasandolas luego a una sola fila de esa
misma hoja con =e7, =e8...
La hoja cuenta con un vinculo a otra hoja y con un commandbutton que lo



que hace es copiar la hoja original en el mismo libro asignandole un
nombre correlativo y borrar de la hoja original la informacion
He reducido las tramas, dejándolas solo en la parte "visible" de la
hoja, con un fondo gris de las filas 1 a 33 de las columnas A, G, H, I,



J, K, L y M
¿Puede pesar esto casi 1.5 megas?