SlideShare a Scribd company logo
1 of 11
CODE FOR WORKBOOK
Sub Workbook()
' Add new workbook
Workbooks.Add
End Sub
ADD NEW WORKBOOK
NEXT: ADD NEW WORKBOOK AND
ACTIVATE OLD WORKBOOK
Sub Workbook()
' Add new workbook and then activate old workbook
Dim Wb as Workbook
Set Wb = ActiveWorkbook
Workbook.Add
Wb.Activate
End Sub
ADD NEW WORKBOOK AND
ACTIVATE OLD WORKBOOK
THANK YOU
CODE FOR BORDER LINE STYLE
Sub Line_style()
' For Border in DashDot
Range("B2").Borders(xlEdgeBottom).LineStyle = XlLineStyle.xlDashDot
End Sub
BORDER STYLE IN DASHDOT
NEXT: BORDER STYLE IN DASH
Range(): Specify the Range or Cells in bracket
Sub Line_style()
' For Border Style in Dash
Range("B2").Borders(xlEdgeBottom).LineStyle = XlLineStyle.xlDash
End Sub
BORDER STYLE IN DASH
NEXT: BORDER STYLE IN DOT
Range(): Specify the Range or Cells in bracket
Sub Line_style()
' For Border Style in Dot
Range("B2").Borders(xlEdgeBottom).LineStyle = XlLineStyle.xlDot
End Sub
BORDER STYLE IN DOT
NEXT: BORDER STYLE IN DOUBLE DASH
Range(): Specify the Range or Cells in bracket
Sub Line_style()
' For Border Style in Dot
Range("B2").Borders(xlEdgeBottom).LineStyle = XlLineStyle.xlDouble
End Sub
BORDER STYLE IN DOUBLE DASH
NEXT: BORDER STYLE IN NONE
Range(): Specify the Range or Cells in bracket
Sub Line_style()
' For Border Style in Dot
Range("B2").Borders(xlEdgeBottom).LineStyle = XlLineStyle.xlNone
End Sub
BORDER STYLE IN NONE
NEXT: BORDER STYLE IN SLANT DASH DOT
Range(): Specify the Range or Cells in bracket
Sub Line_style()
' For Border Style in Slant Dash Dot
Range("B2").Borders(xlEdgeBottom).LineStyle = XlLineStyle.xlslantdashdot
End Sub
BORDER STYLE IN SLANT DASH DOT
NEXT: BORDER STYLE IN CONTINOUS
Range(): Specify the Range or Cells in bracket
Sub Line_style()
' For Border Style in Continous
Range("B2").Borders(xlEdgeBottom).LineStyle = XlLineStyle.xlContinous
End Sub
BORDER STYLE IN CONTINOUS
THANKYOU
Range(): Specify the Range or Cells in bracket

More Related Content

More from Pramodkumar Jha

More from Pramodkumar Jha (20)

Macros to Copy Paste
Macros to Copy PasteMacros to Copy Paste
Macros to Copy Paste
 
Non-Verbal communication language
Non-Verbal communication languageNon-Verbal communication language
Non-Verbal communication language
 
Letters presentation
Letters presentationLetters presentation
Letters presentation
 
E mails presentation
E mails presentationE mails presentation
E mails presentation
 
Communication
CommunicationCommunication
Communication
 
Communication across cultures
Communication across culturesCommunication across cultures
Communication across cultures
 
Body language
Body languageBody language
Body language
 
Barriers to communication
Barriers to communicationBarriers to communication
Barriers to communication
 
Business intelligence
Business intelligenceBusiness intelligence
Business intelligence
 
Iifl
IiflIifl
Iifl
 
Financial ratios analysis
Financial ratios analysisFinancial ratios analysis
Financial ratios analysis
 
Financial concept (part ii)
Financial concept (part ii)Financial concept (part ii)
Financial concept (part ii)
 
Financial concept (part i)
Financial concept  (part i)Financial concept  (part i)
Financial concept (part i)
 
Cost of capital
Cost of capitalCost of capital
Cost of capital
 
Construction infrastruture sector budget 2012 13
Construction   infrastruture sector budget 2012 13Construction   infrastruture sector budget 2012 13
Construction infrastruture sector budget 2012 13
 
Component of budget
Component of budget Component of budget
Component of budget
 
Cement sector budget 2012 13
Cement sector budget 2012 13Cement sector budget 2012 13
Cement sector budget 2012 13
 
Capital good sector 2012 13
Capital good sector 2012 13Capital good sector 2012 13
Capital good sector 2012 13
 
Budget 2012 13
Budget 2012 13Budget 2012 13
Budget 2012 13
 
Automobile budget 2012 13
Automobile budget 2012 13Automobile budget 2012 13
Automobile budget 2012 13
 

Recently uploaded

Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
amitlee9823
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
amitlee9823
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
AroojKhan71
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
amitlee9823
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
amitlee9823
 

Recently uploaded (20)

(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 

Macros for Workbook

  • 2. Sub Workbook() ' Add new workbook Workbooks.Add End Sub ADD NEW WORKBOOK NEXT: ADD NEW WORKBOOK AND ACTIVATE OLD WORKBOOK
  • 3. Sub Workbook() ' Add new workbook and then activate old workbook Dim Wb as Workbook Set Wb = ActiveWorkbook Workbook.Add Wb.Activate End Sub ADD NEW WORKBOOK AND ACTIVATE OLD WORKBOOK THANK YOU
  • 4. CODE FOR BORDER LINE STYLE
  • 5. Sub Line_style() ' For Border in DashDot Range("B2").Borders(xlEdgeBottom).LineStyle = XlLineStyle.xlDashDot End Sub BORDER STYLE IN DASHDOT NEXT: BORDER STYLE IN DASH Range(): Specify the Range or Cells in bracket
  • 6. Sub Line_style() ' For Border Style in Dash Range("B2").Borders(xlEdgeBottom).LineStyle = XlLineStyle.xlDash End Sub BORDER STYLE IN DASH NEXT: BORDER STYLE IN DOT Range(): Specify the Range or Cells in bracket
  • 7. Sub Line_style() ' For Border Style in Dot Range("B2").Borders(xlEdgeBottom).LineStyle = XlLineStyle.xlDot End Sub BORDER STYLE IN DOT NEXT: BORDER STYLE IN DOUBLE DASH Range(): Specify the Range or Cells in bracket
  • 8. Sub Line_style() ' For Border Style in Dot Range("B2").Borders(xlEdgeBottom).LineStyle = XlLineStyle.xlDouble End Sub BORDER STYLE IN DOUBLE DASH NEXT: BORDER STYLE IN NONE Range(): Specify the Range or Cells in bracket
  • 9. Sub Line_style() ' For Border Style in Dot Range("B2").Borders(xlEdgeBottom).LineStyle = XlLineStyle.xlNone End Sub BORDER STYLE IN NONE NEXT: BORDER STYLE IN SLANT DASH DOT Range(): Specify the Range or Cells in bracket
  • 10. Sub Line_style() ' For Border Style in Slant Dash Dot Range("B2").Borders(xlEdgeBottom).LineStyle = XlLineStyle.xlslantdashdot End Sub BORDER STYLE IN SLANT DASH DOT NEXT: BORDER STYLE IN CONTINOUS Range(): Specify the Range or Cells in bracket
  • 11. Sub Line_style() ' For Border Style in Continous Range("B2").Borders(xlEdgeBottom).LineStyle = XlLineStyle.xlContinous End Sub BORDER STYLE IN CONTINOUS THANKYOU Range(): Specify the Range or Cells in bracket