Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default Userfrom code in written in Excel 2000 running in Excel 97

Hi

I have a workbook that was written in Excel 2000.
It has a userforms with code behind it ....executed by a command button.
I sent it to a person running Excel 97 and every time they click on the
command button (on the userform) to run the code ...they get a run time
error message.
The code that starts to run is:
Private Sub CommandButton1_Click()
ActiveWorkbook.Sheets("TelephoneInfo").Unprotect (this is where it stops)


Is this due to the version differences?

Any help is greatly appreciated...
Thanks in advance!
Kimberly


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Userfrom code in written in Excel 2000 running in Excel 97

Set the TakefocusOnClick property of the commandbutton to False. This is a
bug in Excel 97.

--
Regards,
Tom Ogilvy

"KimberlyC" wrote in message
...
Hi

I have a workbook that was written in Excel 2000.
It has a userforms with code behind it ....executed by a command button.
I sent it to a person running Excel 97 and every time they click on the
command button (on the userform) to run the code ...they get a run time
error message.
The code that starts to run is:
Private Sub CommandButton1_Click()
ActiveWorkbook.Sheets("TelephoneInfo").Unprotect (this is where it

stops)


Is this due to the version differences?

Any help is greatly appreciated...
Thanks in advance!
Kimberly




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
Running Excel 2000 VBA Application on Excel 2003 Excel Worksheet Functions 0 August 8th 06 06:04 PM
Excel xp running with Office 2000 kyoung Excel Discussion (Misc queries) 5 April 10th 05 12:11 PM
Excel 2000 running on Windows XP SP2 does not properly open CSV fi Oscar Excel Discussion (Misc queries) 1 December 20th 04 10:10 PM
VB code needed for running newer excel version macros in older excel versions Tom Excel Programming 6 October 16th 03 03:11 AM
macro written in Excel 2000 not working in Excel 2002 Ivan H. Excel Programming 0 August 21st 03 11:33 PM


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