Vba Code

Junaid7861

New Member
Joined
Nov 8, 2023
Messages
2
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi,
Please help mein this.

I have invoice format of 50 sheets these codes apply of worksheets

Vba Code
can row height & column width fixed that not drag from mouse or tool bar.
fonts Tahoma size 11 (A23:H29)
THEN THIS FORMULA IT WORKS PERFECT
ws.Columns("A").ColumnWidth = 11
ws.Columns("B").ColumnWidth = 20
ws.Columns("C").ColumnWidth = 8.71
ws.Columns("D").ColumnWidth = 5
ws.Columns("E").ColumnWidth = 5.29
ws.Columns("F").ColumnWidth = 11.43
ws.Columns("G").ColumnWidth = 10.43

ws.Columns("H").ColumnWidth = 16.57

' Set the row height for rows 23 to 42

ws.Rows("23:42").RowHeight = 22.5



FROM : JC
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,215,090
Messages
6,123,061
Members
449,091
Latest member
ikke

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