VB coding needed

RSEKAR

Board Regular
Joined
Oct 18, 2010
Messages
172
Dear Sir,
I have excel sheet named “ALL”. The sheet contains mostly numerical data. I find difficult in reading the numerical data with decimals in the cell. I do not want to magnify the whole sheet. I need the cell which is selected the data should be magnified to font size 13 (original font size in the sheet is 9)

Thanking you in advance,
RSEKAR
 
Dear Sir,
I have a problem in using your coding. Normally using a macro I copy data from other sheet and paste special value to this sheet named “ALL” where I use your coding. With your coding I am not able to use the macro to copy data to ALL sheet. The macro stops in the middle with error message. Without your coding the macro copy and paste to the ALL sheet with out any problem. Kindly suggest how I should run my macro with your coding in “ALL” sheet.
I use excel 2002.
Thanking you once again.
RSEKAR

Code:
Sub copy()
    Sheet2.Select
    Range("A10:H25").Select
    Selection.copy
    Sheets("ALL").Select
    Range("A10").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
    Range("C28").Select
    Application.CutCopyMode = False
   
End Sub

Try

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
Me.UsedRange.Font.Size = 9
If Target.Column <> 5 Then Exit Sub
Target.Font.Size = 13
End Sub
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,225,483
Messages
6,185,264
Members
453,284
Latest member
osy25

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