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: 1
Default macro_change font style


Good afternoon Tommy_gtr

Welcome to the world of event procedures!

You haven't given much background information about your project, s
I've assumed that your strikethrough macro is named macro1, and tha
you want to type OK in cell A1.

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target A
Range)
If Range("A1").Value = "OK" Then Call macro1
End Sub

The code above will need copying into the ThisWorkbook pane within you
VBE and will call macro1 whenever "OK" is inserted into A1. For mor
info on event procedures have a look he

http://www.cpearson.com/excel/events.htm

HTH

Dominic

--
dominic
-----------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...fo&userid=1893
View this thread: http://www.excelforum.com/showthread.php?threadid=39418

 
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
Changing font style and color using VBA Spongie Excel Discussion (Misc queries) 3 September 30th 09 08:34 PM
Change the Font Style in VBA justme0010[_2_] Excel Discussion (Misc queries) 1 January 15th 08 04:07 AM
font style of worksheet functions gvm Excel Worksheet Functions 4 January 20th 06 08:30 PM
Toggle Font Style Macro GK80535[_5_] Excel Programming 0 October 25th 04 09:41 PM
Function that returns font style GK80535 Excel Programming 1 October 19th 04 10:01 PM


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