Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel2000 VBA problems

Hi colleagues,
I develop VBA Excel2000 project - computer tests for
knowledge assessment.
My problems:
1. I want to disable Close Button on the title bar of some
forms to prevent the examinee from undesirable program
closing.
2. My project supports files, hidden from the examinee and
I want to hide from the application title bar the
filenames of these files, when my project opens it.
3. I use forms as containers for images (.wmf). When I use
obout 20 images (combination between short text and vector
graphics) and I try to cicle then as objects, to find the
appropriate, I get Application error and Excell closes.
Memory problem? I use 256 MB RAM.

Thanks in advance,
Nikolay


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Excel2000 VBA problems

Hi Nikolay,

1. I want to disable Close Button on the title bar of some
forms to prevent the examinee from undesirable program
closing.


Add the following code to the UserForm:

Private Sub UserForm_QueryClose(Cancel As Integer, _
CloseMode As Integer)
If CloseMode < vbFormCode Then Cancel = True
End Sub

2. My project supports files, hidden from the examinee and
I want to hide from the application title bar the
filenames of these files, when my project opens it.


My advice would be to save these workbooks hidden. Choose Window/Hide
from the Excel menu and then use the Visual Basic Editor to save the
workbook that way. Then when your application uses these workbooks the user
won't see them.

Just make sure that the code that uses these workbooks is not using
Selection, ActiveSheet, unqualified Range references, etc. because these
will not operate as expected with hidden workbooks.

3. I use forms as containers for images (.wmf). When I use
obout 20 images (combination between short text and vector
graphics) and I try to cicle then as objects, to find the
appropriate, I get Application error and Excell closes.
Memory problem? I use 256 MB RAM.


I haven't seen this before. Can you duplicate this error on other
machines? Does the problem go away if you reduce the number of images?

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


"Nikolay" wrote in message
...
Hi colleagues,
I develop VBA Excel2000 project - computer tests for
knowledge assessment.
My problems:
1. I want to disable Close Button on the title bar of some
forms to prevent the examinee from undesirable program
closing.
2. My project supports files, hidden from the examinee and
I want to hide from the application title bar the
filenames of these files, when my project opens it.
3. I use forms as containers for images (.wmf). When I use
obout 20 images (combination between short text and vector
graphics) and I try to cicle then as objects, to find the
appropriate, I get Application error and Excell closes.
Memory problem? I use 256 MB RAM.

Thanks in advance,
Nikolay




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
Excel2000: The latest value Arvi Laanemets Excel Worksheet Functions 5 November 30th 05 01:39 PM
Excel2000 Christina Feichter Excel Programming 0 January 26th 04 07:38 PM
Excel2000 Upgrades MWE[_14_] Excel Programming 0 January 24th 04 10:39 PM
excel2000-question piet Excel Programming 4 December 24th 03 07:56 PM


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