fonts invisible

jefflee

Board Regular
Joined
Jun 8, 2015
Messages
80
Hi, there
after ransacking the web for a long time . I cannot find the code to make the font invisible/
question : is it possible to write a code to make fonts invisible ?

thanks
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Try:
Code:
Range("A1:A10").font.color=Range("A1:A10").Interior.Color
change the range to suit.
 
Upvote 0
As long as your cells are not displaying any error values (#VALUE!, #N/A, etc.), you can select the cells and Custom Format them using this...

;;;

If you need VBA code, this line of code will do the same thing...

Range("A1:A10").NumberFormat = ";;;"

Change the range as necessary.
 
Upvote 0
Thanks,
done.
working on making the fonts in the text box invisible.
could you give a hand ?
 
Upvote 0
working on making the fonts in the text box invisible.
could you give a hand ?
Where is the TextBox located at... on a UserForm or on a worksheet? If it is on a worksheet, is it an ActiveX TextBox or a Forms TextBox (from the Insert tab/Text panel on the Ribbon)?
 
Upvote 0
hi , this is my code

If Cells(4, 42) = 1 Then

ActiveSheet.Shapes("scale1").Select
With Selection
Selection.ShapeRange.Line.ForeColor.SchemeColor = 64
Selection.ShapeRange.Line.Visible = msoTrue
End With

ActiveSheet.Shapes("scale1b").Select
With Selection
Selection.ShapeRange.Line.ForeColor.SchemeColor = 64
Selection.ShapeRange.Line.Visible = msoFalse

ActiveSheet.Shapes("num1").Select

With Selection
.ColorIndex = Interior.Color
End With


End If
End Sub


my objective is to make the text in shape num1 invisible.
but error occurs
 
Upvote 0
hi , this is my code

If Cells(4, 42) = 1 Then

ActiveSheet.Shapes("scale1").Select
With Selection
Selection.ShapeRange.Line.ForeColor.SchemeColor = 64
Selection.ShapeRange.Line.Visible = msoTrue
End With

ActiveSheet.Shapes("scale1b").Select
With Selection
Selection.ShapeRange.Line.ForeColor.SchemeColor = 64
Selection.ShapeRange.Line.Visible = msoFalse

ActiveSheet.Shapes("num1").Select

With Selection
.ColorIndex = Interior.Color
End With


End If
End Sub


my objective is to make the text in shape num1 invisible.
but error occurs
Try replacing the highlighted line of code with this...

.TextFrame.Characters.Font.Color = .Fill.BackColor
 
Upvote 0
Thanks Rick,

it just highlighted with yellow and no message error show.
try many times.
is it the matter of version ? i use 2003

Thanks thanks
 
Upvote 0
Thanks Rick,

it just highlighted with yellow and no message error show.
try many times.
is it the matter of version ? i use 2003
I don't know... I use XL2010 and the code I posted worked fine for me when I tested it prior to posting it. Maybe one of the properties I used was not available in XL2003... that would explain the error you are reporting.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top