#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default format

Hello friends
Accept 2 values in two variables eg. Dt1 and dt2 and print this in the same
cell, eg in 5th row 7th column one below the other €œdt1 . The variable
will be replaced by value
To
Dt2€
CAN WE FORMAT THE DATA IN AN EXCEL SHEET/CELL LIKE FONT SIZE FONT TYPE COL.
WIDTH ROWHEIGHT, ETC.

SUPPOSE I WANT TO FORMAT FOR COLUMN A FROM ROW 10 TO LAST
Couldwe format the data in an excel shet/cell like font size, font type,
col/row width/ht etc in a macro
thankyou

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200912/1

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default format

You can specify the font size, font type, font name and row height of the
cells from A10 to the bottom of the column, but you have to resize the entire
column the same (A1 to the bottom of the column). Use code something like
this:

With Range("A10:A" & Cells(Rows.Count).Row)
..Font.Size = 11 'use whatever number you need
..Font.Bold = True
..Font.Name = "Arial"
..RowHeight = 20
..EntireColumn.ColumnWidth = 20
End With

This will set the format of all cells in column A from row 10 to the bottom
of the sheet to Bold Arial, size 11 point, in a row height of 20 and it will
make the entire column "A" (including A1:A9) 20 wide.

If you need something different, post more specifics; I think this is what
you were asking for. If this is helpful, please click on the "Yes" below
HTH

"sania via OfficeKB.com" wrote:

Hello friends
Accept 2 values in two variables eg. Dt1 and dt2 and print this in the same
cell, eg in 5th row 7th column one below the other €œdt1 . The variable
will be replaced by value
To
Dt2€
CAN WE FORMAT THE DATA IN AN EXCEL SHEET/CELL LIKE FONT SIZE FONT TYPE COL.
WIDTH ROWHEIGHT, ETC.

SUPPOSE I WANT TO FORMAT FOR COLUMN A FROM ROW 10 TO LAST
Couldwe format the data in an excel shet/cell like font size, font type,
col/row width/ht etc in a macro
thankyou

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200912/1

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default format

hai fisch4bill
thankyou this is what i want

--
Message posted via http://www.officekb.com

Reply
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
Adding time in 24 hour format to produce hours in decimal format Hercdriver Excel Worksheet Functions 11 December 29th 09 02:06 AM
Need help with converting CUSTOM format/TEXT format to DATE format Deo Cleto Excel Worksheet Functions 6 June 2nd 09 08:14 PM
Replace million-billion number format to lakhs-crores format Sumit Excel Discussion (Misc queries) 1 December 9th 05 04:58 PM
how to format excel format to text format with separator "|" in s. azlan New Users to Excel 1 January 31st 05 12:57 PM
Keep format after paste from other worksheets - conditional format or EnableControl solution doesn't work No Name Excel Programming 0 May 3rd 04 12:22 PM


All times are GMT +1. The time now is 07:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"