Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default a on_doubleclick statement is not working

Hi, could someone could tell me why this:
public valuex as string
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
Application.ScreenUpdating = False
UserForm11.Show
Target.Value = valuex
Application.ScreenUpdating = True
End Sub

valuex =combobox3 (combobox3 on_change event)
and valuex appears as empty althought I declared it (public valuex as string)
I also trayed to declare valuex on my userform module
TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default a on_doubleclick statement is not working

Public variables should be declared in a standard module. The modules
for sheets and forms are Class Modules. Try moving:
public valuex as string
to a standard module.

Hope this helps
Rowan

filo666 wrote:
Hi, could someone could tell me why this:
public valuex as string
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
Application.ScreenUpdating = False
UserForm11.Show
Target.Value = valuex
Application.ScreenUpdating = True
End Sub

valuex =combobox3 (combobox3 on_change event)
and valuex appears as empty althought I declared it (public valuex as string)
I also trayed to declare valuex on my userform module
TIA

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default a on_doubleclick statement is not working

Thank you very much, it works as expected

"Rowan Drummond" wrote:

Public variables should be declared in a standard module. The modules
for sheets and forms are Class Modules. Try moving:
public valuex as string
to a standard module.

Hope this helps
Rowan

filo666 wrote:
Hi, could someone could tell me why this:
public valuex as string
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
Application.ScreenUpdating = False
UserForm11.Show
Target.Value = valuex
Application.ScreenUpdating = True
End Sub

valuex =combobox3 (combobox3 on_change event)
and valuex appears as empty althought I declared it (public valuex as string)
I also trayed to declare valuex on my userform module
TIA


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default a on_doubleclick statement is not working

You're welcome.

filo666 wrote:
Thank you very much, it works as expected

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
IF Statement not working Barrett M Excel Worksheet Functions 8 May 6th 08 03:29 PM
If statement working only once Lime Excel Worksheet Functions 0 May 5th 08 03:58 AM
If Statement Not Working Telegirl Excel Worksheet Functions 9 May 12th 07 04:34 PM
For Each Statement still not working Jacqui Excel Programming 6 November 2nd 05 04:01 PM
If statement not working right TimT Excel Programming 2 July 11th 05 06:18 PM


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