![]() |
Formatting using VBA
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. |
Formatting using VBA
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. |
Formatting using VBA
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. |
Formatting using VBA
"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- |
All times are GMT +1. The time now is 11:29 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com