LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Assign Cell "B5" Value to Macro (activation function)

Hi, Everyone,

I want to prepare one function that allows user to run specific macro
when they enter the different numbers in to "B5"

SUPPOSE:

if user Enter 777 into B5, then Run Macro "Rows_Hide"
if user Enter 888 into B5, then Run Macro "Rows_Show"

like this...........

I already feed 777 into B5, then the Macro "Rows_Hide" will run, when
the worksheet activated. then the user feed 888 into B5, then the
other Macro will run and shows all the Rows in the sheet.


Sub Rows_Hide()
Sheets("sheet2").Rows("25:65536").EntireRow.Hidden = True
End Sub

Sub Rows_Show()
Sheets("sheet2").Rows("25:65536").EntireRow.Hidden = False
End Sub

And I also want to restrict the B5 for 777 and 888 digit only.

the Sheet2 is very hidden sheet. I made a userform to change the B5
into Sheet2 by Textbox, how I restrict the Textbox1 for only for 777
and 888.

I hope that you understand my problem.

JUSTIFICATION FOR THIS FUNCTION:

Actually I made a small vba project, for all public, and I will share
this to all peoples, initially they will have this worksheet only for
25 rows data entry, once they are satisfied with this program, then
they will send me a mail for activation for unlimited access, then I
will send 888 digit for activation of this workbook.

Thank you and best regard.

Shahzad
Madinah
 
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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
"assign macro" not an option from short menu SteveJ Excel Discussion (Misc queries) 2 May 18th 06 05:55 PM
commnd button - when i rt click, "assign macro" isnt an option... kevin[_3_] Excel Programming 1 November 12th 04 09:52 PM
not getting the "assign macro" shortcut JC Home[_2_] Excel Programming 3 October 2nd 04 11:07 PM
"Assign Macro" is gone from menu JustMe Excel Programming 1 February 6th 04 02:00 PM


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