Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there -
I haven't played around with macros much before and need to ask what must be an extremely simple question. I want to create a toolbar button in Excel (this is Excel 2003) to put a tick in a cell. I recorded a macro of the action (below) but while it puts a u-umlaut character in the selected cell, it only applies the right font formatting to cell D7 (where the cursor happened to be at time of recording) and leaves the current cell as is, whereas it needs to be in the Wingdings font. I seem to remember in an older version of Office (95?), when you went in to Record Macro it asked if you wanted to use absolute or relative cell references, which might have done the trick, but that option seems to have been moved or removed now. And I know no VBA, not even enough to make basic changes to the macro. Can anyone please help? Many thanks! Sub Tick() ' ' Tick Macro ' Macro recorded 01/08/2007 ' ' ActiveCell.FormulaR1C1 = "ü" Range("D7").Select With Selection.Font ..Name = "Wingdings" ..Size = 10 ..Strikethrough = False ..Superscript = False ..Subscript = False ..OutlineFont = False ..Shadow = False ..Underline = xlUnderlineStyleNone ..ColorIndex = xlAutomatic End With Selection.Font.Bold = True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Simple Excel Macro | New Users to Excel | |||
Help with a simple Excel macro | Excel Programming | |||
simple excel macro Q | Excel Programming | |||
simple excel vba macro | Excel Programming | |||
Simple Excel Macro - Please Help | Excel Programming |