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: 37
Default WorkBook Open & Sheet Activate

Hi all,

There is only one sheet in my workbook, a cell in that sheet usually
assigned a date value - NOW(in coding, not the formula =NOW()). I wrote some
codes for changing different rows background color according to that date
(weekday). For testing purpose, sometimes I manually change the date in that
cell.

My problem is, my intention is write the code:
Sheets("ABC").Range("S1") = Now
in the Workbook open function and write the changing color code in the sheet
activate function. But it didn't work. Now, I have written two set of code
that one in the Workbook open function (date for now) and one in the
commandbutton in the sheet (press that button to get the cell "S1" value and
do the same thing). How can I do it for only has one set of code so easier
for amendment?

Furthermore, how to declare a function and what is the keyword for calling
that function?

Thank you.


 
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
can't seem to activate an open workbook dantee Excel Discussion (Misc queries) 1 July 11th 08 02:48 AM
how to Activate the previous Open, workbook..? acegap Excel Programming 3 June 25th 06 04:14 PM
how to open a Workbook and activate a specific sheet Bob Phillips[_6_] Excel Programming 0 August 17th 04 09:24 PM
how to open a Workbook and activate a specific sheet Bigwheel Excel Programming 0 August 17th 04 09:04 PM
open and activate workbook? Dave Peterson[_3_] Excel Programming 0 June 30th 04 03:07 AM


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