LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Not Enough Memory!

Hi,

I am working on my Invoice.xls and sometimes I have this message:

"Mémoire insuffisante pour afficher en entier" wich would translat
roughly to:

"Not enough memory to display everything" Sorry not to know the exac
english designation of this error.

This invoice is not very complicated. Consisting of 3 sheets, one fo
the invoice, one to store data of the customers and one formatted t
print the enveloppe.

I have 11 sub in module1 (Is this a problem)

I have also 1 userform that display a negative timer while printing th
invoice and another userform with 6 buttons for printing the invoic
and reset it for next customer, printing enveloppe, sort the customers
see the invoice data that is store in a notepad .txt, quit the progra
and cancel the action.

On all my sub, I do not DIM. I suppose that there is my answer.

But I would like to be sure that there is not other things I shoul
look for.

Anyways,

below is one of my sub to register the invoice data in a file. Would
need to DIM that? Could I make this sub much thinner?

Thanks


Alain


Sub Enregistrement_et_nouvelle_facture()
Open "LexpertData.txt" For Append As #1
ligne = ""
Rref = Sheets("facture").Range("L6")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("L12")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E12")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E13")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E14")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E15")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("I15")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("D18")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E18")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("L18")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("D19")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E19")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("L19")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("D20")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E20")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("L20")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("D21")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E21")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("L21")
ligne = ligne & Rref & "~"

Rref = Sheets("facture").Range("D25")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E25")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("K25")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("D26")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E26")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("K26")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("D27")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E27")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("K27")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("D28")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E28")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("K28")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("D29")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E29")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("K29")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("D30")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E30")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("K30")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("D31")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E31")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("K31")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("D32")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("E32")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("K32")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("K36")
ligne = ligne & Rref & "~"
Rref = Sheets("facture").Range("K38")
ligne = ligne & Rref
Write #1, ligne
Close
ligne = ""
Application.Run "nouvelle_facture" 'new invoice
FinEnregistrement:
End Sub


---
Message posted from http://www.ExcelForum.com/

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
XL 2007 - Out of Memory - memory leak/bug? PCLIVE Excel Discussion (Misc queries) 0 March 23rd 09 03:31 PM
Which will use more memory? Smudge Excel Discussion (Misc queries) 2 November 17th 06 04:20 PM
Out of memory. Why? Carl Excel Worksheet Functions 4 October 9th 06 05:32 PM
Out of Memory Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 4 June 1st 05 01:07 AM
The instruction at "0x65255ac9" referenced memory at "0x00000008". The memory could not be read. Clikc OK to terminate etc Angus Comber[_2_] Excel Programming 1 November 7th 03 01:18 PM


All times are GMT +1. The time now is 03:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"