Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
EVERY SHEET ADDED = 1.5 MEGAS... I´VE GOT A PROBLEM!!!!!!
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? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
EVERY SHEET ADDED = 1.5 MEGAS... I´VE GOT A PROBLEM!!!!!!
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? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
EVERY SHEET ADDED = 1.5 MEGAS... I´VE GOT A PROBLEM!!!!!!
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? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
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? |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
EVERY SHEET ADDED = 1.5 MEGAS... I´VE GOT A PROBLEM!!!!!!
Carlos,
Might the source worksheet be very large? What's the size of the workbook with just the source worksheet? Maybe the last cell (Ctrl+End) is much further down the worksheet then it should be. If this is the case, delete those rows _and_ columns that are not part of your data, save the workbook, then repeat the Ctrl+End to find what Excel thinks is now the last used cell. Another test, to divorce your code from the workbook size, is to manually copy the worksheet (Edit- Move or Copy sheet...). In case it matters, I use Excel 2000. Art cbm wrote: 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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Pivot Table problem, blank fields aren't being added | Excel Discussion (Misc queries) | |||
How do I add V.A.T (Value Added Tax) to a spread sheet? | Excel Discussion (Misc queries) | |||
Naming a newly added sheet | Excel Programming | |||
Naming a newly added sheet | Excel Programming | |||
Rename the sheet just added | Excel Programming |