Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 390
Default Multipage and Global variables

Have a multipage form

Up front have delared
Option Explicit
Public mya1, mya2

Then
Sub workbook_open()
Worksheets("Answers").Activate
mya1 = Range("e2").Value 'mya1 at this stage is holding value
Mymain.Show 'mymain is multipage form

In mymain first page have group buttons
When select button want mya1 to display
But mya1 is blank

Any clues appreciated

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Multipage and Global variables

From VBE, left tree view. Right click on 'This workbook'. Insert a module and
move your declarations to the there...Save and try..

If this post helps click Yes
---------------
Jacob Skaria


"Bill" wrote:

Have a multipage form

Up front have delared
Option Explicit
Public mya1, mya2

Then
Sub workbook_open()
Worksheets("Answers").Activate
mya1 = Range("e2").Value 'mya1 at this stage is holding value
Mymain.Show 'mymain is multipage form

In mymain first page have group buttons
When select button want mya1 to display
But mya1 is blank

Any clues appreciated

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
Global Variables MM User Excel Programming 2 September 7th 08 08:09 PM
global variables Nicolas Roth Excel Programming 3 September 25th 06 04:40 PM
global variables Mike Archer Excel Programming 4 May 3rd 06 07:33 PM
Global Variables mattsvai[_11_] Excel Programming 4 February 3rd 06 05:02 PM
global variables [email protected] Excel Programming 3 November 16th 05 11:44 PM


All times are GMT +1. The time now is 10:43 PM.

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"