LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Program a macro to run at specific instances

I still need help with the second question on running the macro when there is
a change in cells within a particular range - is it possible to program the
macro to run only when there is a change in column B of the table? What I
mean is, this worksheet is linked to another such that when a user enters
data, it is also displays in the worksheet where I have the macro. So, I
want the macro to run, when previously empty cells in column B get data. Is
that possible?

"Bob Phillips" wrote:

I take it you got your answer according to the other thread in the other
group?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Chiku" wrote in message
...
Thanks for the help on the first question, was just what I needed.
To give more details for my second question, the spreadsheet with the

macro
that hides blank cells is linked to another workbook whereby users enter
data. If they don't enter data on some rows, the macro hides these rows.
Currently I have been running the macro manually and wanted to automate

it.
So the trigger to unhide the rows is actually when either the user enters
data or when I open the workbook. I was thinking of instances when both
workbooks are open, to automate the macro whenever there is a change in

the
range of B Cells of the initial workbook, which is what tells the macro
whether or not to hide a row. (Not sure if it is clear - let me know)

"Bob Phillips" wrote:



"Chiku" wrote in message
...
I have a macro that hides blank rows whenever there is no value in a
particular cell. Two things:

1.) How do I program the macro to run everytime the file is opened


Add the code in workbook_open

Private Sub Workbook_Open()
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code

2.) How do I also program the macro to run every time someone adds a

value
in any of the cells that determine whether its row should be hidden?

In
other
words, column B contains the cells in which when blank, the row is

hidden.
Now I want to unhide the row if someone enters data in the cell in

column
B

How would they enter data in B if it is hidden? any cell?








 
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
Count Instances of a Specific Character Commish Excel Discussion (Misc queries) 2 August 10th 09 10:55 PM
Tool to automatically install a macro + button on 200+ instances ofexcel? [email protected] Excel Worksheet Functions 0 January 30th 09 11:49 PM
Excel Macro to find instances of a word [email protected] Excel Discussion (Misc queries) 1 April 5th 07 01:30 PM
counting instances of specific times in fields with date and time Rob Odum Excel Worksheet Functions 2 April 13th 06 04:06 PM
Program a drop down list to show a specific response depending on the selction Vita Cator Excel Programming 1 October 30th 03 07:12 PM


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