LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default if function prob

You don't need an if as the button has a click event which is effectively
telling your code that it has been clicked.

Private Sub CommandButton1_Click()
Msgbox "Button1 clicked"
End Sub

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Manisha" wrote in message
...
i hav a userfrom, on this 2 button.
to 1 of these i want to attach an IF statement sayin if
this button is pressed enter data onto 2nd line in the
spreadsheet. does ne1 kno the correct terminology??

thanks



 
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
CSE Formula Prob pdberger Excel Worksheet Functions 4 February 16th 08 03:51 AM
quotient function prob. i have copied example but it gives error Chris Whitehead Excel Discussion (Misc queries) 10 March 28th 07 12:06 AM
Macro Prob Carl Excel Worksheet Functions 3 August 28th 06 05:03 PM
Counting prob superkopite Excel Discussion (Misc queries) 13 January 23rd 06 09:18 AM
how to use the Prob function in a list of averages to find the le josephWard6 Excel Worksheet Functions 2 June 19th 05 11:14 PM


All times are GMT +1. The time now is 07:32 AM.

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"