Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How would I write a macro that:
i)Inserts a new row in row 1 of my spreadsheet ii)Places columns names in A1 ("Surname"),B1 ("First Name") & C1 ("Score") and Bolds them. Thanks in advance |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this
Sub test() With ActiveSheet .Range("A1").EntireRow.Insert .Range("A1").Value = "Surname" .Range("B1").Value = "First Name" .Range("C1").Value = "Score" .Range("A1:C1").Font.Bold = True End With End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "Steve" wrote in message ... How would I write a macro that: i)Inserts a new row in row 1 of my spreadsheet ii)Places columns names in A1 ("Surname"),B1 ("First Name") & C1 ("Score") and Bolds them. Thanks in advance |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Ron
-----Original Message----- Try this Sub test() With ActiveSheet .Range("A1").EntireRow.Insert .Range("A1").Value = "Surname" .Range("B1").Value = "First Name" .Range("C1").Value = "Score" .Range("A1:C1").Font.Bold = True End With End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "Steve" wrote in message ... How would I write a macro that: i)Inserts a new row in row 1 of my spreadsheet ii)Places columns names in A1 ("Surname"),B1 ("First Name") & C1 ("Score") and Bolds them. Thanks in advance . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
rows(1).Insert
Range("A1:C1").Value = Array("Surname","First Name","Score") Range("A1:C1").font.bold = True -- Regards, Tom Ogilvy "Steve" wrote in message ... How would I write a macro that: i)Inserts a new row in row 1 of my spreadsheet ii)Places columns names in A1 ("Surname"),B1 ("First Name") & C1 ("Score") and Bolds them. Thanks in advance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
lookup using column headers and row headers | Excel Discussion (Misc queries) | |||
Inserting text into custom headers / footers | Excel Discussion (Misc queries) | |||
make column values column headers | Excel Discussion (Misc queries) | |||
Excel - returning column headers in a seperate column | Excel Discussion (Misc queries) | |||
Matching headers and inserting values from a table | Excel Programming |