Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 136
Default Flushing Memory/Cache Clear:

Hello All:
I have a general question, It seem that when I run some codes,
doesn't matter what it is, Once I modify it in the same session, it
seem that the previous version to the modification is still running.
I suspected this so to confirm it I have added letters to the given
messages and I still get the previous message, it almost seems that
the original code is stuck in the memory. If this assumption is
correct how would I clear memory.

____________ Sample _____________
If Some code Then
Do something
Else
MsgBox "Message!"
Some code to flush the memory
Exit Sub
End If

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Flushing Memory/Cache Clear:

If you are using user forms then unload them before using them again:

Unload UserForm1

If you are using variables then you have defined them as module or global
level variables. They are not reset until you close and reopen the workbook.
If any variables are used only within a specific routine then define them
there and they will be reinitialized each time the routine is called.

Kevin
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Flushing Memory/Cache Clear:

This is your third post of the same question. Have you looked at the other
answers? Did you try what was recomended? Please try to stick with just one
thread...
--
HTH...

Jim Thomlinson


"Ardy" wrote:

Hello All:
I have a general question, It seem that when I run some codes,
doesn't matter what it is, Once I modify it in the same session, it
seem that the previous version to the modification is still running.
I suspected this so to confirm it I have added letters to the given
messages and I still get the previous message, it almost seems that
the original code is stuck in the memory. If this assumption is
correct how would I clear memory.

____________ Sample _____________
If Some code Then
Do something
Else
MsgBox "Message!"
Some code to flush the memory
Exit Sub
End If


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 136
Default Flushing Memory/Cache Clear:

On Jul 17, 4:20 pm, Jim Thomlinson <James_Thomlin...@owfg-Re-Move-
This-.com wrote:
This is your third post of the same question. Have you looked at the other
answers? Did you try what was recomended? Please try to stick with just one
thread...
--
HTH...

Jim Thomlinson

"Ardy" wrote:
Hello All:
I have a general question, It seem that when I run some codes,
doesn't matter what it is, Once I modify it in the same session, it
seem that the previous version to the modification is still running.
I suspected this so to confirm it I have added letters to the given
messages and I still get the previous message, it almost seems that
the original code is stuck in the memory. If this assumption is
correct how would I clear memory.


____________ Sample _____________
If Some code Then
Do something
Else
MsgBox "Message!"
Some code to flush the memory
Exit Sub
End If


Jim:
It was not my intent to do so, Google has been having problems with
the posts showing up, users don't see the posts thinking it didn't
go, so naturally they try to post. this problem came abt around late
16th. currently I am trying All suggested solutions......
Sorry for the multiple post

Reply
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
How to Clear a Pivot Table Cache DoctorG Excel Discussion (Misc queries) 1 February 16th 10 03:04 PM
Memory/Cache Clear: Ardy Excel Programming 3 July 19th 07 03:42 PM
Flushing Memory/Cache Clear: Ardy Excel Programming 2 July 17th 07 08:52 PM
MSXML2.XMLHTTP clear excel cache/memory (?) p3plyr Excel Programming 3 March 21st 07 10:15 AM
Pivot Cache Memory Jared Excel Programming 0 December 16th 04 04:31 PM


All times are GMT +1. The time now is 06:37 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"