You are on page 1of 2

Sub InsererImage()

Dim ws As Worksheet
Set ws = Sheets("Photos")
Dim p As Object
'InsertAndSizePic Range("B4"), imgname, hieghtincm, widthincm
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
7
InsertAndSizePic
7
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
InsertAndSizePic
aker Main input
InsertAndSizePic
InsertAndSizePic
12.47
InsertAndSizePic
7

Range("B6"), "Site Building", 8.14, 28.97 '


Range("B8"), "Base station panoramic photo", 8.14, 28.97
Range("B10"), "Building entrance ", 8.14, 28.97
Range("B12"), "Building Stairs Width", 8.14, 28.97
Range("B14"), "Crane access to the Street", 8.16, 20.18
Range("B16"), "External view of the equipment room", 8.14, 28.9
Range("B18"), "Internal view of the equipment room", 8.14, 28.9
Range("B120"), "Lower side walls level", 8.14, 28.97
Range("B22"), "Middle side walls level", 8.14, 28.97
Range("B24"), "Upper side walls level", 8.14, 28.97
Range("A26"), "2G Existing BTS Cabinet1", 10.84, 8.62
Range("B26"), "2G Existing BTS Cabinet2", 10.84, 8.62
Range("C26"), "2G Existing BTS Cabinet3", 10.84, 8.62
Range("D26"), "2G Existing BTS Cabinet4", 10.84, 8.62
Range("B28"), "2G(900)Existing RFU boards", 8.16, 20.18
Range("A30"), "2G(1800)Existing BTS Cabinet1", 10.84, 8.62
Range("B30"), "2G(1800)Existing BTS Cabinet2", 10.84, 8.62
Range("C30"), "2G(1800)Existing BTS Cabinet3", 10.84, 8.62
Range("D30"), "2G(1800)Existing BTS Cabinet4", 10.84, 8.62
Range("B32"), "2G (1800) Existing RFU boards", 8.16, 20.18
Range("A34"), "3G Existing BTS Cabinet1", 10.84, 8.62
Range("B34"), "3G Existing BTS Cabinet2", 10.84, 8.62
Range("C34"), "3G Existing BTS Cabinet3", 10.84, 8.62
Range("D34"), "3G Existing BTS Cabinet4", 10.84, 8.62
Range("B36"), "3G(2100)Existing RFU boards", 8.16, 20.18
Range("A38"), "BBU1", 10.84, 8.62
Range("B38"), "BBU2", 10.84, 8.62
Range("C38"), "BBU3", 10.84, 8.62
Range("D38"), "BBU4", 10.84, 8.62
Range("A40"), "DCDU1", 10.8, 8.62
Range("B40"), "DCDU2", 10.8, 20.18
Range("D40"), "DCDU3", 10.8, 20.18
Range("A42"), "Transmission Existing Cabinet1", 10.84, 8.62
Range("B42"), "Transmission Existing Cabinet2", 10.84, 8.62
Range("C42"), "Transmission Existing Cabinet3", 10.84, 8.62
Range("D42"), "Transmission Existing Cabinet4", 10.84, 8.62
Range("B44"), "General view for tower", 8.16, 20.18
Range("B46"), "Jumper to feeder connection", 8.16, 20.18
Range("B48"), "Microwave Dishes", 8.16, 20.18
Range("B50"), "Combiner", 8.16, 20.18
Range("B52"), "Spliter", 8.16, 20.18
Range("A54"), "USED (ODF/ IDU /SWITCH) Photo", 8.16, 37.62
Range("E54"), "USED (ODF/ IDU /SWITCH) Port Photo", 8.16, 10.98
Range("B56"), "Other Equipment photo", 8.16, 20.18 'AC Grid Bre
Range("A58"), "AC Grid Breaker Main input", 8.16, 28.82
Range("D58"), "TGBT Output Breaker for 2G power system", 8.16,
Range("D58"), "TGBT Output Breaker for 3G power system", 8.16,

End Sub
Sub InsertAndSizePic(Target As Range, picname As String, heigh As Single, widt A
s Single)
Dim pipath As String
Dim path As String
path = "C:\Users\DIAS\Desktop\A3\"
PicPath = path & picname & ".jpg"
Application.ScreenUpdating = False
Target.Select
On Error GoTo resumer
Set p = Sheets(3).Pictures.Insert(PicPath)
With ActiveCell
p.ShapeRange.LockAspectRatio = msoFalse
p.Height = Application.CentimetersToPoints(heigh)
p.Width = Application.CentimetersToPoints(widt)
p.Left = .Left
End With
resumer:
End Sub

You might also like