Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default How to use MS Flex Grid in Excel vba form

Hi guys

I have VB 6, and need to use the Ms Flex Grid control on a VBA form
within Excel.

However the incorporation of the control into the form is rejected
with the message "unsafe..." which normally occurs if you dont have
the license for it (or don't have VB 6 installed) which is not my
case.

In the forms in VB 6 environment, I don't have any problem.

Does anybody know how to use (load) the cotrol on the Excel form?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default How to use MS Flex Grid in Excel vba form

Mika was thinking very hard :
Hi guys

I have VB 6, and need to use the Ms Flex Grid control on a VBA form
within Excel.

However the incorporation of the control into the form is rejected
with the message "unsafe..." which normally occurs if you dont have
the license for it (or don't have VB 6 installed) which is not my
case.

In the forms in VB 6 environment, I don't have any problem.

Does anybody know how to use (load) the cotrol on the Excel form?


When the userform is active in design view, right-click the Toolbox and
you'll be able to add additional controls. It will, of course, be
necessary to distribute (and register) the control with your vba
project in order for it to work on other machines.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default How to use MS Flex Grid in Excel vba form

On Nov 3, 5:59*pm, GS wrote:
Mika was thinking very hard :

Hi guys


I have VB 6, and need to use the Ms Flex Grid control on a VBA form
within Excel.


However the incorporation of the control into the form is rejected
with the message "unsafe..." which normally occurs if you dont have
the license for it (or don't have VB 6 installed) which is not my
case.


In the forms in VB 6 environment, I don't have any problem.


Does anybody know how to use (load) the cotrol on the Excel form?


When the userform is active in design view, right-click the Toolbox and
you'll be able to add additional controls. It will, of course, be
necessary to distribute (and register) the control with your vba
project in order for it to work on other machines.

--
Garry

Free usenet access athttp://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


GS, I didn't explain it clearly.
There is not problem to add the control to the toolbox as you
describe. The error appears when I try to put such control FROM the
toolbox into the Form. Then, it is not accepted.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default How to use MS Flex Grid in Excel vba form

It happens that Mika formulated :
On Nov 3, 5:59*pm, GS wrote:
Mika was thinking very hard :

Hi guys


I have VB 6, and need to use the Ms Flex Grid control on a VBA form
within Excel.


However the incorporation of the control into the form is rejected
with the message "unsafe..." which normally occurs if you dont have
the license for it (or don't have VB 6 installed) which is not my
case.


In the forms in VB 6 environment, I don't have any problem.
Does anybody know how to use (load) the cotrol on the Excel form?


When the userform is active in design view, right-click the Toolbox and
you'll be able to add additional controls. It will, of course, be
necessary to distribute (and register) the control with your vba
project in order for it to work on other machines.

--
Garry

Free usenet access athttp://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


GS, I didn't explain it clearly.
There is not problem to add the control to the toolbox as you
describe. The error appears when I try to put such control FROM the
toolbox into the Form. Then, it is not accepted.


I see. I don't get that when I draw the control on a userform (or
drag/drop it there). It seems to work just fine for me. Maybe you could
provide more info like which version of Excel you're working in and the
version of MSFlexGrid.ocx you're trying to use.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 449
Default How to use MS Flex Grid in Excel vba form

"Mika" wrote in message
...

I have VB 6, and need to use the Ms Flex Grid control on a VBA form
within Excel.


However the incorporation of the control into the form is rejected
with the message "unsafe..." which normally occurs if you dont have
the license for it (or don't have VB 6 installed) which is not my
case.


In the forms in VB 6 environment, I don't have any problem.


Hi Mika

Userforms are not compiled like exe files are. To use a control on a
userform, the user needs a license to run the control in "design mode" -here
meaning a valid Visual Studio 6 installation.

So in short, you can't do this.

Best wishes Harald



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default How to use MS Flex Grid in Excel vba form

On Nov 3, 9:15*pm, "Harald Staff" wrote:
"Mika" wrote in message

...

I have VB 6, and need to use the Ms Flex Grid control on a VBA form
within Excel.


However the incorporation of the control into the form is rejected
with the message "unsafe..." which normally occurs if you dont have
the license for it (or don't have VB 6 installed) which is not my
case.


In the forms in VB 6 environment, I don't have any problem.


Hi Mika

Userforms are not compiled like exe files are. To use a control on a
userform, the user needs a license to run the control in "design mode" -here
meaning a valid Visual Studio 6 installation.

So in short, you can't do this.

Best wishes Harald



Just for the records, in case somebody got the same problem, I was
able to solve it in the most unusual way:

- First: yes, I do have a legal version of VB 6 installed, and as I
said I can work in VB and the Flex grid without problem.

I found that in another excel form my Common dialog control stopped
working as well, getting the error; "Class not registered...", on top
of that, another control used: Tree list, had the same error.

Therefore I re-registered both controls, with regserv32, and voila !
the MS FlexGrid began to work! I didn't have to register the MS
FlexGrid control.

What is the reason ?. I have no clue.
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to use MS Flex Grid in Excel vba form

"Mika" skrev i melding
...
Just for the records, in case somebody got the same problem, I was
able to solve it in the most unusual way:


- First: yes, I do have a legal version of VB 6 installed, and as I
said I can work in VB and the Flex grid without problem.


Ah good. For the records, sorry I misunderstood your problem. It usually is:
A userform like that will not run on other computers that doesn't have VB6,
even when the controls are properly installed and registered.

Best wishes Harald


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
How do you add data entry grid to a form(UserForm) in Excel 2003? scutzer Excel Programming 1 February 2nd 10 06:44 PM
flex grid control Marino Setting up and Configuration of Excel 0 September 25th 07 04:26 PM
Simple flex grid Edward Ulle[_2_] Excel Programming 0 September 18th 06 02:47 PM
Flex Grid Control (supporting files) RLang Excel Programming 2 August 15th 06 06:50 AM
Excel Grid to Template/Form? D[_6_] Excel Programming 3 August 2nd 04 05:48 PM


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