Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default is this an acceptable way to pop up a form?

i wrote an app for a client. there is a column with account numbers that are
comma separated , for each row of a form. some may have 1 account # , some may
have 10. the routines looks at each account # and then populates the form based
on their gl account number(s), from an imported text file.

so i once the form is populated, i create a before right click event that pops
up a form and displays the acct #, acct name and amounts listed in 2 listboxes.

anyway, the right click event only fires on single cell in column E and only if
the sheet is protected.

just wondering if you can foresee any problems i may encounter doing this.

--


Gary



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 182
Default is this an acceptable way to pop up a form?

Hi Gary,

Just adding some ... that I've worked with this one :
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, _
Cancel As Boolean)
Cancel = True
If Not UserForm1.Visible Then UserForm1.Show 0
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If UserForm1.Visible Then UserForm1.Hide
End Sub
--

Regards,

Halim


"Gary Keramidas" wrote:

i wrote an app for a client. there is a column with account numbers that are
comma separated , for each row of a form. some may have 1 account # , some may
have 10. the routines looks at each account # and then populates the form based
on their gl account number(s), from an imported text file.

so i once the form is populated, i create a before right click event that pops
up a form and displays the acct #, acct name and amounts listed in 2 listboxes.

anyway, the right click event only fires on single cell in column E and only if
the sheet is protected.

just wondering if you can foresee any problems i may encounter doing this.

--


Gary




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default is this an acceptable way to pop up a form?

thanks for the feedback, halim

--


Gary


"Halim" wrote in message
...
Hi Gary,

Just adding some ... that I've worked with this one :
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, _
Cancel As Boolean)
Cancel = True
If Not UserForm1.Visible Then UserForm1.Show 0
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If UserForm1.Visible Then UserForm1.Hide
End Sub
--

Regards,

Halim


"Gary Keramidas" wrote:

i wrote an app for a client. there is a column with account numbers that are
comma separated , for each row of a form. some may have 1 account # , some
may
have 10. the routines looks at each account # and then populates the form
based
on their gl account number(s), from an imported text file.

so i once the form is populated, i create a before right click event that
pops
up a form and displays the acct #, acct name and amounts listed in 2
listboxes.

anyway, the right click event only fires on single cell in column E and only
if
the sheet is protected.

just wondering if you can foresee any problems i may encounter doing this.

--


Gary






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
In a formula, how do I set a maximum acceptable value? hollisterbulldawg Excel Worksheet Functions 1 March 6th 10 01:44 AM
blank cells in a formula gives me an answer not acceptable to prin AL VEGA New Users to Excel 2 June 20th 06 01:06 AM
Pass variable from form to form to form headly Excel Programming 1 May 31st 06 02:50 AM
Strange issue freezing parent form when unloading a child form Stefano Gatto Excel Programming 1 November 11th 05 04:42 PM
Conditional Formatting formula not acceptable? Thief_ Excel Discussion (Misc queries) 4 July 19th 05 11:54 AM


All times are GMT +1. The time now is 02:36 AM.

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"