Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have create macro command to performe following task:
Sub Macro1() Range("D11:D25,F11:F25,H11:H25").Select Range("H11").Activate Selection.ClearContents Range("D10").Select End Sub my question, can i add to request password or ask Yes or No to proceed the command. tq- param |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Try this code: Sub Macro1() myPWD = Application.InputBox("Enter a number") If myPWD = "NAVEEN" Then Range("D11:D25,F11:F25,H11:H25").Select Range("H11").Activate Selection.ClearContents Range("D10").Select Else Msgbox "Wrong Password! Bye!" End If End Sub Regards NAVEEN "Param" wrote: I have create macro command to performe following task: Sub Macro1() Range("D11:D25,F11:F25,H11:H25").Select Range("H11").Activate Selection.ClearContents Range("D10").Select End Sub my question, can i add to request password or ask Yes or No to proceed the command. tq- param |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
TQ so much!
"NAVEEN" wrote: Hi, Try this code: Sub Macro1() myPWD = Application.InputBox("Enter a number") If myPWD = "NAVEEN" Then Range("D11:D25,F11:F25,H11:H25").Select Range("H11").Activate Selection.ClearContents Range("D10").Select Else Msgbox "Wrong Password! Bye!" End If End Sub Regards NAVEEN "Param" wrote: I have create macro command to performe following task: Sub Macro1() Range("D11:D25,F11:F25,H11:H25").Select Range("H11").Activate Selection.ClearContents Range("D10").Select End Sub my question, can i add to request password or ask Yes or No to proceed the command. tq- param |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Search, Copy, Paste Macro in Excel | Excel Worksheet Functions | |||
Macro Command | Excel Discussion (Misc queries) | |||
Is it possible to insert a macro command in an "IF" function? | Excel Worksheet Functions | |||
2 part question - macro / command button | Excel Discussion (Misc queries) | |||
macro ...if command, I suppose... | Excel Discussion (Misc queries) |