Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Visual Basic only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Visual Basic
excel cell format change
excel cell format change
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
TcoUpLoad
New Member
Join Date:
Aug 2007
Posts:
2
#1
excel cell format change
Aug 31 '07, 09:27 AM
Hi,
Anyone knows how i can change cell format in excel with a code line?
QVeen72
Recognized Expert
Top Contributor
Join Date:
Oct 2006
Posts:
1445
#2
Aug 31 '07, 09:35 AM
Hi,
Select the cell and change format :
For Number formatting
[code=vb]
Range("D8").Sel ect
Selection.Numbe rFormat = "0.00"
Columns("D:D"). ColumnWidth = 15
[/code]
Date Formatting :
[code=vb]
Range("D11").Se lect
Selection.Numbe rFormat = "d-mmm-yy"
[/code]
REgards
Veena
Comment
Post
Cancel
TcoUpLoad
New Member
Join Date:
Aug 2007
Posts:
2
#3
Aug 31 '07, 09:37 AM
Hi,
In that order for time will be samething like
.....numberform at="hh:mm:ss"
right?
Comment
Post
Cancel
QVeen72
Recognized Expert
Top Contributor
Join Date:
Oct 2006
Posts:
1445
#4
Aug 31 '07, 03:48 PM
Hi,
U can try this :
[code=vb]
Range("D8").Sel ect
Selection.Numbe rFormat = "[h]:mm:ss;@"
[/code]
REgards
Veena
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment