Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello All,
I am dumping data from an Ms Access data source to an Excel spreadsheet. I have the field names and the data going to excel just fine. I having trouble mimicking a Header section from a picture of what my users want to see. How can I: 1: Insert a into a cell and have the cell cover from A1 to say D1 2: Format that area with Highlight, bold, shading all that good stuff. If anyone could help me with that, it would really be appreciated. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
here's a shot...
Range("A1:D1").Select "Deville" wrote: Hello All, I am dumping data from an Ms Access data source to an Excel spreadsheet. I have the field names and the data going to excel just fine. I having trouble mimicking a Header section from a picture of what my users want to see. How can I: 1: Insert a into a cell and have the cell cover from A1 to say D1 2: Format that area with Highlight, bold, shading all that good stuff. If anyone could help me with that, it would really be appreciated. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Let me try that again..
Sub URSUB() Range("A1:D1").Select Selection.Font.Bold = True With Selection.Interior .ColorIndex = 6 .Pattern = xlSolid End Sub End With"Deville" wrote: Hello All, I am dumping data from an Ms Access data source to an Excel spreadsheet. I have the field names and the data going to excel just fine. I having trouble mimicking a Header section from a picture of what my users want to see. How can I: 1: Insert a into a cell and have the cell cover from A1 to say D1 2: Format that area with Highlight, bold, shading all that good stuff. If anyone could help me with that, it would really be appreciated. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "Deville" wrote in message ... Hello All, I am dumping data from an Ms Access data source to an Excel spreadsheet. I have the field names and the data going to excel just fine. I having trouble mimicking a Header section from a picture of what my users want to see. How can I: 1: Insert a into a cell and have the cell cover from A1 to say D1 2: Format that area with Highlight, bold, shading all that good stuff. If anyone could help me with that, it would really be appreciated. In addition to what Alex said, playing with Excel's Macro Recorder feature can show you the right code. It also shows you a lot of format code you don't need, but it's a great way to learn how to code cell formats. -gk- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
condionally formatting based on another cells formatting? | Excel Discussion (Misc queries) | |||
Conditional formatting--different formatting depending on cell con | Excel Discussion (Misc queries) | |||
Protect Cell Formatting including Conditional Formatting | Excel Discussion (Misc queries) | |||
conditional Formatting based on cell formatting | Excel Worksheet Functions | |||
expanding custom formatting without removing existing cell formatting? | Excel Worksheet Functions |