32CARDS
Board Regular
- Joined
- Jan 1, 2005
- Messages
- 123
Hi all,
I'm back after a long spell from computer etc.
last time I fired up my VBA project was November 2007 according to the date files.
So, on with it.
Last time I worked on my project using dynamic web querie in VBA, excel freezes the entire PC, the only way is to Ctl Alt Del to get task manager up and then click on Excel to shut it down
In my code I have DoEvents before and after at the point of freeze when the project is running, to no avail.
I have tried many other suggestions, and the same project has been on several entirley different computers, still it will freeze after a period of time.
The project does real time updates from financialy related web pages, and it is during the refresh phase where it seems to freeze.
When I shut doen excel from task manager and re-open, start the maco, it runs as if nothing has occured.
I assume it has to be something to do with memory clogging up
My question is this
One of the flushing methods I use is to code
ipconfig /renew
ipconfig /flushDNS
ipconfig /registerdns
and the file is saved as a .BAT
file saved as
C:\folderA/REPAIR.BAT
VBA
Sub repair_ip()
Shell ("c:\folderA\REPAIR.bat")
End Sub
This suggestion did not stop the freeze.
I run this code at various points of the entire process.
---------------------,
The next code suggested has to do with flushing the memory chips.
I got this from googling ages ago, I am not sure exactly where.
But the Code is in VBScript
inside the file is:
mystring=(8000000000000)
It is suppose to free up memory
name of file is; "ram.VBScript"
,made by using notepad.
Therefore
C:\folderA/ram.VBScript
have tried VBA code to run this file and test the project to see if it will freeze
Sub ram()
Shell ("c:\folderA\ram.VBScript")
End Sub
And have also tried as a BAT file
Sub ram()
Shell ("c:\folderA\ram.BAT")
End Sub
Both trials did not work
-----------
But this does work
VBA
Sub repair_ip()
Shell ("c:\folderA\REPAIR.bat")
End Sub
--------------,
How can I get
mystring=(8000000000000)
to work in VBA?
I'm back after a long spell from computer etc.
last time I fired up my VBA project was November 2007 according to the date files.
So, on with it.
Last time I worked on my project using dynamic web querie in VBA, excel freezes the entire PC, the only way is to Ctl Alt Del to get task manager up and then click on Excel to shut it down
In my code I have DoEvents before and after at the point of freeze when the project is running, to no avail.
I have tried many other suggestions, and the same project has been on several entirley different computers, still it will freeze after a period of time.
The project does real time updates from financialy related web pages, and it is during the refresh phase where it seems to freeze.
When I shut doen excel from task manager and re-open, start the maco, it runs as if nothing has occured.
I assume it has to be something to do with memory clogging up
My question is this
One of the flushing methods I use is to code
ipconfig /renew
ipconfig /flushDNS
ipconfig /registerdns
and the file is saved as a .BAT
file saved as
C:\folderA/REPAIR.BAT
VBA
Sub repair_ip()
Shell ("c:\folderA\REPAIR.bat")
End Sub
This suggestion did not stop the freeze.
I run this code at various points of the entire process.
---------------------,
The next code suggested has to do with flushing the memory chips.
I got this from googling ages ago, I am not sure exactly where.
But the Code is in VBScript
inside the file is:
mystring=(8000000000000)
It is suppose to free up memory
name of file is; "ram.VBScript"
,made by using notepad.
Therefore
C:\folderA/ram.VBScript
have tried VBA code to run this file and test the project to see if it will freeze
Sub ram()
Shell ("c:\folderA\ram.VBScript")
End Sub
And have also tried as a BAT file
Sub ram()
Shell ("c:\folderA\ram.BAT")
End Sub
Both trials did not work
-----------
But this does work
VBA
Sub repair_ip()
Shell ("c:\folderA\REPAIR.bat")
End Sub
--------------,
How can I get
mystring=(8000000000000)
to work in VBA?