Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Line of code hanging up on one machine???

Hi Folks,

Why would the line of code below hang on one machine but run smoothly
on another machine? Both machines have WinXP and both have Excel
2000.


Workbooks("EstimatedBillingForms4").Close
SaveChanges:=False


TIA,

Don G

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Line of code hanging up on one machine???

Try adding .xls to the workbook name:

Workbooks("EstimatedBillingForms4.xls").Close SaveChanges:=False

There's a windows setting for each pc to hide/show extensions. Depending on
that setting, specifying the workbook name without the extension can confuse
excel.

I've never seen it fail if I always included the extension.

"Don G - ExcelForums.com" wrote:

Hi Folks,

Why would the line of code below hang on one machine but run smoothly
on another machine? Both machines have WinXP and both have Excel
2000.


Workbooks("EstimatedBillingForms4").Close
SaveChanges:=False

TIA,

Don G


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
Don Don is offline
external usenet poster
 
Posts: 487
Default Line of code hanging up on one machine???

Thanks Dave.....As soon as the office opens up, I'll give that a try and post
back if that's the cure.

Don

"Dave Peterson" wrote:

Try adding .xls to the workbook name:

Workbooks("EstimatedBillingForms4.xls").Close SaveChanges:=False

There's a windows setting for each pc to hide/show extensions. Depending on
that setting, specifying the workbook name without the extension can confuse
excel.

I've never seen it fail if I always included the extension.

"Don G - ExcelForums.com" wrote:

Hi Folks,

Why would the line of code below hang on one machine but run smoothly
on another machine? Both machines have WinXP and both have Excel
2000.


Workbooks("EstimatedBillingForms4").Close
SaveChanges:=False

TIA,

Don G


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
Don Don is offline
external usenet poster
 
Posts: 487
Default Line of code hanging up on one machine???

Dave,

That did the trick. Program works great on both machines now just by adding
the .xls extension as you suggested.

Thanks very much for your help,

Don

"Dave Peterson" wrote:

Try adding .xls to the workbook name:

Workbooks("EstimatedBillingForms4.xls").Close SaveChanges:=False

There's a windows setting for each pc to hide/show extensions. Depending on
that setting, specifying the workbook name without the extension can confuse
excel.

I've never seen it fail if I always included the extension.

"Don G - ExcelForums.com" wrote:

Hi Folks,

Why would the line of code below hang on one machine but run smoothly
on another machine? Both machines have WinXP and both have Excel
2000.


Workbooks("EstimatedBillingForms4").Close
SaveChanges:=False

TIA,

Don G


--

Dave Peterson

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
Excel xls files open as Machine Code ocar23 New Users to Excel 0 May 22nd 08 12:46 AM
Macro code error; machine dependent SJC Excel Worksheet Functions 4 February 1st 06 04:31 PM
charting code hanging up Papa Jonah Excel Programming 1 March 3rd 05 04:55 AM
code is not working on another machine Papa Jonah Excel Programming 4 March 1st 05 07:57 PM
Excel 2000 Hanging while reading large file with Line Input Jacques Brun Excel Programming 4 February 21st 04 05:05 PM


All times are GMT +1. The time now is 01:00 AM.

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

About Us

"It's about Microsoft Excel"