Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Conditional load of form when entering a certain worksheet


I'm pretty new to Excel VB and brand new to this forum. Hope someon
can help with my scenario.

I have a workbook with multiple worksheets. two particular sheets ge
data from other sheets. I want a form to open if the value of a cel
in that worksheet is not equal to zero. I enter the sheet (named dd
by clicking the tab at the bottom. in my mind i'm thinking:

on enter worksheet dd, if cell J55<0, then load Userform1

Userform1 is one I already created. Would I add the code under th
worksheet object or need to create a module or constantly runnin
macro???

Thanks.
Davo6

--
davo6
-----------------------------------------------------------------------
davo64's Profile: http://www.excelforum.com/member.php...fo&userid=1550
View this thread: http://www.excelforum.com/showthread.php?threadid=27077

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Conditional load of form when entering a certain worksheet

Private Sub Worksheet_Activate()
If Me.Range("J55").Value < 0 Then
Show UserForm1
End If
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.



--

HTH

RP

"davo64" wrote in message
...

I'm pretty new to Excel VB and brand new to this forum. Hope someone
can help with my scenario.

I have a workbook with multiple worksheets. two particular sheets get
data from other sheets. I want a form to open if the value of a cell
in that worksheet is not equal to zero. I enter the sheet (named dd)
by clicking the tab at the bottom. in my mind i'm thinking:

on enter worksheet dd, if cell J55<0, then load Userform1

Userform1 is one I already created. Would I add the code under the
worksheet object or need to create a module or constantly running
macro???

Thanks.
Davo64


--
davo64
------------------------------------------------------------------------
davo64's Profile:

http://www.excelforum.com/member.php...o&userid=15504
View this thread: http://www.excelforum.com/showthread...hreadid=270778



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Conditional load of form when entering a certain worksheet

Sorry that should be Userform1.Show

--

HTH

RP

"davo64" wrote in message
...

I'm pretty new to Excel VB and brand new to this forum. Hope someone
can help with my scenario.

I have a workbook with multiple worksheets. two particular sheets get
data from other sheets. I want a form to open if the value of a cell
in that worksheet is not equal to zero. I enter the sheet (named dd)
by clicking the tab at the bottom. in my mind i'm thinking:

on enter worksheet dd, if cell J55<0, then load Userform1

Userform1 is one I already created. Would I add the code under the
worksheet object or need to create a module or constantly running
macro???

Thanks.
Davo64


--
davo64
------------------------------------------------------------------------
davo64's Profile:

http://www.excelforum.com/member.php...o&userid=15504
View this thread: http://www.excelforum.com/showthread...hreadid=270778



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
User Form - how to load it Balan Excel Discussion (Misc queries) 4 May 20th 08 12:39 PM
Load form when workbook opens [email protected] Excel Discussion (Misc queries) 2 July 19th 06 03:32 AM
form wont show or load FSt1 Excel Programming 0 August 31st 04 06:33 PM
Load 2nd form - second one not working after hide - help pls Cheryl Excel Programming 3 August 20th 04 06:42 PM
Load and Unload Form commands R Avery Excel Programming 4 July 29th 04 03:16 PM


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