|
-
Oct 6th, 2010, 03:01 AM
#1
Thread Starter
New Member
VB excel cell properties
Hi,
I have a few questions, how do I change some advanced properties of some cells when I create an excel from within vb?
I know some basics like colors and so
but:
how do I set the cell to be shown in %
how do I put text horizontal or in an angele
greetings
djemmers
-
Oct 6th, 2010, 03:46 AM
#2
Re: VB excel cell properties
try like
cell.numberformat = "0.00%"
if the % is wrong, find out from excel, format a cell to % then read the numberformat by code
try recording a macro in excel, to generate some sample code, then modify to VB6
Last edited by westconn1; Oct 6th, 2010 at 04:49 AM.
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Oct 11th, 2010, 12:38 PM
#3
Re: VB excel cell properties
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|