Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Tdp Tdp is offline
external usenet poster
 
Posts: 74
Default Show UserForm if cell is emprty.

How can I get a UserForm to pop up, when a page is opened, only if a cell is
empty?
--
Tdp
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Show UserForm if cell is emprty.

Private Sub Worksheet_Activate()
If Range("A1").Value = "" Then UserForm1.Show
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

Bob

"Tdp" wrote in message
...
How can I get a UserForm to pop up, when a page is opened, only if a cell
is
empty?
--
Tdp



  #3   Report Post  
Posted to microsoft.public.excel.misc
Tdp Tdp is offline
external usenet poster
 
Posts: 74
Default Show UserForm if cell is emprty.

Thanks for that.
I'v tried modifying your code so that when the workbook opens to sheet1
everytime. Userform1 to show if Range("a1") in Sheet7 is empty, but with no
luck!!!
I'm using the following:

Private Sub Workbook_Open()
If Sheet7.Range("B6").Value = "" Then UserForm3.Show
End Sub

I'v placed this code in "ThisWorkbook"

--
Tdp


"Bob Phillips" wrote:

Private Sub Worksheet_Activate()
If Range("A1").Value = "" Then UserForm1.Show
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

Bob

"Tdp" wrote in message
...
How can I get a UserForm to pop up, when a page is opened, only if a cell
is
empty?
--
Tdp




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Show UserForm if cell is emprty.

You have said Range("a1") but coded Range("B6")

--
__________________________________
HTH

Bob

"Tdp" wrote in message
...
Thanks for that.
I'v tried modifying your code so that when the workbook opens to sheet1
everytime. Userform1 to show if Range("a1") in Sheet7 is empty, but with
no
luck!!!
I'm using the following:

Private Sub Workbook_Open()
If Sheet7.Range("B6").Value = "" Then UserForm3.Show
End Sub

I'v placed this code in "ThisWorkbook"

--
Tdp


"Bob Phillips" wrote:

Private Sub Worksheet_Activate()
If Range("A1").Value = "" Then UserForm1.Show
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

Bob

"Tdp" wrote in message
...
How can I get a UserForm to pop up, when a page is opened, only if a
cell
is
empty?
--
Tdp






  #5   Report Post  
Posted to microsoft.public.excel.misc
Tdp Tdp is offline
external usenet poster
 
Posts: 74
Default Show UserForm if cell is emprty.

Sorry it is "A1". I was multi-tasking at the time!!
--
Tdp


"Bob Phillips" wrote:

You have said Range("a1") but coded Range("B6")

--
__________________________________
HTH

Bob

"Tdp" wrote in message
...
Thanks for that.
I'v tried modifying your code so that when the workbook opens to sheet1
everytime. Userform1 to show if Range("a1") in Sheet7 is empty, but with
no
luck!!!
I'm using the following:

Private Sub Workbook_Open()
If Sheet7.Range("B6").Value = "" Then UserForm3.Show
End Sub

I'v placed this code in "ThisWorkbook"

--
Tdp


"Bob Phillips" wrote:

Private Sub Worksheet_Activate()
If Range("A1").Value = "" Then UserForm1.Show
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

Bob

"Tdp" wrote in message
...
How can I get a UserForm to pop up, when a page is opened, only if a
cell
is
empty?
--
Tdp








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Show UserForm if cell is emprty.

Does it now work with A1?

--
__________________________________
HTH

Bob

"Tdp" wrote in message
...
Sorry it is "A1". I was multi-tasking at the time!!
--
Tdp


"Bob Phillips" wrote:

You have said Range("a1") but coded Range("B6")

--
__________________________________
HTH

Bob

"Tdp" wrote in message
...
Thanks for that.
I'v tried modifying your code so that when the workbook opens to sheet1
everytime. Userform1 to show if Range("a1") in Sheet7 is empty, but
with
no
luck!!!
I'm using the following:

Private Sub Workbook_Open()
If Sheet7.Range("B6").Value = "" Then UserForm3.Show
End Sub

I'v placed this code in "ThisWorkbook"

--
Tdp


"Bob Phillips" wrote:

Private Sub Worksheet_Activate()
If Range("A1").Value = "" Then UserForm1.Show
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

Bob

"Tdp" wrote in message
...
How can I get a UserForm to pop up, when a page is opened, only if a
cell
is
empty?
--
Tdp








  #7   Report Post  
Posted to microsoft.public.excel.misc
Tdp Tdp is offline
external usenet poster
 
Posts: 74
Default Show UserForm if cell is emprty.

No, I'm afraid not.
--
Tdp


"Bob Phillips" wrote:

Does it now work with A1?

--
__________________________________
HTH

Bob

"Tdp" wrote in message
...
Sorry it is "A1". I was multi-tasking at the time!!
--
Tdp


"Bob Phillips" wrote:

You have said Range("a1") but coded Range("B6")

--
__________________________________
HTH

Bob

"Tdp" wrote in message
...
Thanks for that.
I'v tried modifying your code so that when the workbook opens to sheet1
everytime. Userform1 to show if Range("a1") in Sheet7 is empty, but
with
no
luck!!!
I'm using the following:

Private Sub Workbook_Open()
If Sheet7.Range("B6").Value = "" Then UserForm3.Show
End Sub

I'v placed this code in "ThisWorkbook"

--
Tdp


"Bob Phillips" wrote:

Private Sub Worksheet_Activate()
If Range("A1").Value = "" Then UserForm1.Show
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

Bob

"Tdp" wrote in message
...
How can I get a UserForm to pop up, when a page is opened, only if a
cell
is
empty?
--
Tdp









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
Userform won't show after closing another file Gerry O Excel Discussion (Misc queries) 8 September 7th 07 03:51 PM
Re-show userform after closing file - code help Gerry O Excel Discussion (Misc queries) 3 September 4th 07 10:52 PM
Userform won't show when file re-opened Gerry O Excel Discussion (Misc queries) 2 September 4th 07 05:42 PM
Userform password to show "xxxxxx" in the text box Ola2B Excel Discussion (Misc queries) 7 March 15th 07 02:52 PM
Properties window show nothing for a userform Cheer-Phil-ly Excel Discussion (Misc queries) 0 July 27th 06 07:15 PM


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