LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Formatting Data in excel VBA

Well, I am a little bit confused about what you are attempting to do. If you
want to format a range as a column or row header, you have a couple of
options. If you want each column header or row header to have a different
format, then you would have to write code for each one. If you want all the
headers to have the same format, then you only have to write the code once
and apply it to all of the cells in the header range. You can put the range
in a variable container like myRange or hdrRange or whatever name you want to
give it with a statement like:
myRange = Range("A1:F1") which will incorporate the first row of cells in
columns A through F. From then on, you simply refer to those cells as
myRange or whatever you decide to call it. Most properties and types are
established unless you want to create something different or new. That takes
a lot of detailed explanation which you would be better off looking up in
either the VBA help files or by web search in Google or Yahoo. As I said, I
am a little bit confused about what you really are trying to do.

"Nate Lasko" wrote:

I was thinking about creating an object that would store the header for each
column, the actual column that it will be formatting, and what type of my
premade formats I would like to use when applying the formatting. I know how
to declare an object but I am not sure how to actually declar the properties
and their types. Can you help me with that??? Also should I just declare one
object or an object for each column that I will be formatting???

"Nate Lasko" wrote:

Hi guys,

New here and add an issue I m hoping you can help me with. Here is the
problem:

I work in the pricing Dept for a grocery store. I use excel to do all my
spreadsheet work for tasks like setting up new products that are going into
the stores, creating sale item batches, and comparing sales movements on
items. The problem is that many times vendors send me the new product info in
an excel spreadsheet but the data is never formatted in a way that I can use.
I use a program call BRDATA to handle all of the stores inventory control.

What I want to be able to do and have done up until the acutall formatting
part is this.

-Open the spreadsheet from the outside vendor (completed)
-Grab the column headers and match them up with the appropriate preset
headers that I use (completed) when working with BRDATA
-Based on which preset header the imported columns correspond to, then take
that data and format it to my needs (incomplete!!!!!!!)

I can send or post the code if you guys need it! I have a working Macro with
accompanying form that I can also take a screenshot of and post as well if
you guys show me how.

Any ideas and input would be greatly appreciated!!!

Thanks!!!

 
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
.net formatting data in excel douglas Excel Discussion (Misc queries) 2 April 2nd 09 04:42 PM
Excel data formatting jreinier Excel Worksheet Functions 3 May 8th 08 10:05 PM
Data Formatting in Excel/Macro Sadanand Padmawar Excel Discussion (Misc queries) 1 July 18th 06 06:56 PM
excel could not save all the data and formatting Ramil Excel Worksheet Functions 0 July 3rd 06 08:09 AM
excel cell and data formatting ratt Excel Programming 1 June 15th 05 05:00 AM


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