Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default strange prob: file not getting closed after vlookup

I do a vlookup from a file 'A' to a file 'B' which had
some 6000 lines. I just do a vlookup on one cell and then
copy paste the remmaining cell values for speeding up.

the problem is when i am using the file for the vlookup
and in the end i close it then the file is not getting
closed. its very strange though. if i comment the vlookup
thing then at the end of the macro i can close it very
smoothly.

what is the reason. I am struggling for it for so long!

thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default strange prob: file not getting closed after vlookup

Hi

it might have to do with calculating the workbook .. you might like to turn
automatic calculation off in your code at the start of the procedure

Application.Calculation = xlManual

and then turn it back on at the end and see if this makes a difference

Application.Calculation = xlAutomatic

Cheers
JulieD

wrote in message
...
I do a vlookup from a file 'A' to a file 'B' which had
some 6000 lines. I just do a vlookup on one cell and then
copy paste the remmaining cell values for speeding up.

the problem is when i am using the file for the vlookup
and in the end i close it then the file is not getting
closed. its very strange though. if i comment the vlookup
thing then at the end of the macro i can close it very
smoothly.

what is the reason. I am struggling for it for so long!

thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default strange prob: file not getting closed after vlookup

Hey
thanks julie
the problem still persisits. its only when i complete the
macro and in the end if i try and close the workbook "B"
its takes time. (the macro is written for workbook "a".
this is a very strange thing.

i am not writing anythin gin workbooks"B" ... if ideally i
open it and then close it ; it closes imm and smoothly,

whereas if i do a vlookup using that workbook then it
simply hangs!!!!!!

what could be the problem...i am scratching my head since
morning!
-----Original Message-----
Hi

it might have to do with calculating the workbook .. you

might like to turn
automatic calculation off in your code at the start of

the procedure

Application.Calculation = xlManual

and then turn it back on at the end and see if this makes

a difference

Application.Calculation = xlAutomatic

Cheers
JulieD

wrote in message
...
I do a vlookup from a file 'A' to a file 'B' which had
some 6000 lines. I just do a vlookup on one cell and

then
copy paste the remmaining cell values for speeding up.

the problem is when i am using the file for the vlookup
and in the end i close it then the file is not getting
closed. its very strange though. if i comment the

vlookup
thing then at the end of the macro i can close it very
smoothly.

what is the reason. I am struggling for it for so long!

thanks in advance



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default strange prob: file not getting closed after vlookup

I may be on the wrong track here, but i've had problems in workbooks where i
have a lot of VLOOKUP statements as VLOOKUP is volatile and keeps wanting to
recalculate all the time ..

so maybe after running the code, you turn calculation to manual (tools /
options / calculation - manual) and then try & close the workbook.

Cheers
JulieD




line in the code but remove the o
wrote in message
...
Hey
thanks julie
the problem still persisits. its only when i complete the
macro and in the end if i try and close the workbook "B"
its takes time. (the macro is written for workbook "a".
this is a very strange thing.

i am not writing anythin gin workbooks"B" ... if ideally i
open it and then close it ; it closes imm and smoothly,

whereas if i do a vlookup using that workbook then it
simply hangs!!!!!!

what could be the problem...i am scratching my head since
morning!
-----Original Message-----
Hi

it might have to do with calculating the workbook .. you

might like to turn
automatic calculation off in your code at the start of

the procedure

Application.Calculation = xlManual

and then turn it back on at the end and see if this makes

a difference

Application.Calculation = xlAutomatic

Cheers
JulieD

wrote in message
...
I do a vlookup from a file 'A' to a file 'B' which had
some 6000 lines. I just do a vlookup on one cell and

then
copy paste the remmaining cell values for speeding up.

the problem is when i am using the file for the vlookup
and in the end i close it then the file is not getting
closed. its very strange though. if i comment the

vlookup
thing then at the end of the macro i can close it very
smoothly.

what is the reason. I am struggling for it for so long!

thanks in advance



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default strange prob: file not getting closed after vlookup

ni it jsut doesnt work..

i have given up..,.:-(((((
-----Original Message-----
I may be on the wrong track here, but i've had problems

in workbooks where i
have a lot of VLOOKUP statements as VLOOKUP is volatile

and keeps wanting to
recalculate all the time ..

so maybe after running the code, you turn calculation to

manual (tools /
options / calculation - manual) and then try & close the

workbook.

Cheers
JulieD




line in the code but remove the o
wrote in message
...
Hey
thanks julie
the problem still persisits. its only when i complete

the
macro and in the end if i try and close the workbook "B"
its takes time. (the macro is written for workbook "a".
this is a very strange thing.

i am not writing anythin gin workbooks"B" ... if

ideally i
open it and then close it ; it closes imm and smoothly,

whereas if i do a vlookup using that workbook then it
simply hangs!!!!!!

what could be the problem...i am scratching my head

since
morning!
-----Original Message-----
Hi

it might have to do with calculating the workbook .. you

might like to turn
automatic calculation off in your code at the start of

the procedure

Application.Calculation = xlManual

and then turn it back on at the end and see if this

makes
a difference

Application.Calculation = xlAutomatic

Cheers
JulieD

wrote in message
.. .
I do a vlookup from a file 'A' to a file 'B' which had
some 6000 lines. I just do a vlookup on one cell and

then
copy paste the remmaining cell values for speeding up.

the problem is when i am using the file for the

vlookup
and in the end i close it then the file is not getting
closed. its very strange though. if i comment the

vlookup
thing then at the end of the macro i can close it very
smoothly.

what is the reason. I am struggling for it for so

long!

thanks in advance


.



.

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
vlookup prob with all #n/a's Janis Excel Discussion (Misc queries) 5 July 30th 07 10:26 PM
VLOOKUP from closed file using INDIRECT function Ben Excel Worksheet Functions 3 May 17th 06 01:58 AM
Strange Prob with Worksheet name jesmin Excel Discussion (Misc queries) 1 February 4th 06 12:08 PM
Excel is not asking to save a changed file when the file is closed Ron Excel Discussion (Misc queries) 2 March 14th 05 01:05 AM
VBA - on a button event, open another closed file, post changes, close file Fio Excel Programming 0 March 1st 04 01:08 PM


All times are GMT +1. The time now is 02:11 PM.

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"