Good Morning.
I have a worksheet set up with some code via BeforeDoubleClick to insert/remove "✓" in certain cells. Below is the current code to do so. It works flawlessly. I also have the worksheet protected so my users can not alter the layout etc...
Is there a way to add a sub-routine within the BeforeDoubleClick function to allow my users to insert a picture in a completely different cell and save the picture with the file and not the link? Or do we need to use a different function like BeforeRightClick? I have cells AJ8:BA13, this size is not written in stone and may alter based on readability of picture. However this merged cell is where I would like to have the users insert the picture. I do not know the file path layout of where my users save the pictures on their computers. So this will need to be an undefined file path. The inserted picture should have the aspect ratio locked to maintain readability. I've attached a screen shot of the sheet as the mini sheet upload function does not display the cell sizing the same. Cell width and height are both set to 0.38cm in my file. Is there a way to upload the file itself. If there is a better way to write the insert/remove code, by all means I am open to suggestions as I am new to the coding.
I have a worksheet set up with some code via BeforeDoubleClick to insert/remove "✓" in certain cells. Below is the current code to do so. It works flawlessly. I also have the worksheet protected so my users can not alter the layout etc...
VBA Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Sheet1.Unprotect "8unch2015@"
If Not Intersect(Target, Range("f29,j29,n29,H30,l30,p30,i31,m31,q31,i32,m32,q32")) Is Nothing Then
Application.EnableEvents = False
If ActiveCell.Value = ChrW(&H2713) Then
ActiveCell.ClearContents
Else
ActiveCell.Value = ChrW(&H2713)
End If
Cancel = True
End If
Application.EnableEvents = True
Range("f29,j29,n29,H30,l30,p30,i31,m31,q31,i32,m32,q32").HorizontalAlignment = xlCenter
Sheet1.Protect "8unch2015@"
End Sub
Is there a way to add a sub-routine within the BeforeDoubleClick function to allow my users to insert a picture in a completely different cell and save the picture with the file and not the link? Or do we need to use a different function like BeforeRightClick? I have cells AJ8:BA13, this size is not written in stone and may alter based on readability of picture. However this merged cell is where I would like to have the users insert the picture. I do not know the file path layout of where my users save the pictures on their computers. So this will need to be an undefined file path. The inserted picture should have the aspect ratio locked to maintain readability. I've attached a screen shot of the sheet as the mini sheet upload function does not display the cell sizing the same. Cell width and height are both set to 0.38cm in my file. Is there a way to upload the file itself. If there is a better way to write the insert/remove code, by all means I am open to suggestions as I am new to the coding.
DCS# 7.3.16.1 UPS Checklist.xlsm | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | AE | AF | AG | AH | AI | AJ | AK | AL | AM | AN | AO | AP | AQ | AR | AS | AT | AU | AV | AW | AX | AY | AZ | BA | |||
3 | Uniterruptible Power Supply (UPS) Inspection | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
4 | Date: | 10/02/2021 | Client: | Paramount Resouces | Client Job No.: | N/A | |||||||||||||||||||||||||||||||||||||||||||||||||
5 | Job No.: | 21-26165 | Project: | Mult-Well Pad Expansion | Location: | 5-16 West | |||||||||||||||||||||||||||||||||||||||||||||||||
6 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
7 | UPS Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
8 | Building No.: | Circuit No.: | Pic of Name Plate Here (optional) | ||||||||||||||||||||||||||||||||||||||||||||||||||||
9 | Equipment Tag: | AC Voltage: | |||||||||||||||||||||||||||||||||||||||||||||||||||||
10 | Make: | AC Current: | |||||||||||||||||||||||||||||||||||||||||||||||||||||
11 | Model no.: | AC Phase: | |||||||||||||||||||||||||||||||||||||||||||||||||||||
12 | Serial No.: | DC Voltage: | |||||||||||||||||||||||||||||||||||||||||||||||||||||
13 | Distribution Panel: | DC Current: | |||||||||||||||||||||||||||||||||||||||||||||||||||||
14 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
15 | Visual Inspection | Initials | |||||||||||||||||||||||||||||||||||||||||||||||||||||
16 | Has the UPS nameplate been checked against approved vendor drawings and project specifications and details | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
17 | Is the equipment CSA approved? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
18 | Circuit breaker is sized in accordance with job specification and codes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
19 | Wire is sized to carry rated amperage of the circuit breaker | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
20 | Perform visual checks of UPS systems major components (Rectifier, Inverter, Static, and Manual Transfer Switch) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
21 | for proper installation, grounding, wiring and connections | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
22 | UPS circuit breaker is identified correctly on lighting panel schedule | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
23 | UPS has been terminated correctly as per specification and codes and connections are secured | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
24 | UPS transformers are sized as per job specification and codes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
25 | Check battery as per Battery Test Report, DCS# 7.3.16.2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
26 | If there is any missing items or deficiencies, are they listed on the E & I Punch List DCS# 7.3.2.3 as well as recorded in the test results below? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
28 | Test | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
29 | AC Fail: | Yes | ✓ | No | N/A | DC Voltage Displayed: | Float Voltage: | ||||||||||||||||||||||||||||||||||||||||||||||||
30 | Rectifier Fail: | Yes | No | N/A | DC Voltage Measured: | Start Charge Voltage: | |||||||||||||||||||||||||||||||||||||||||||||||||
31 | DC Low Voltage: | Yes | No | N/A | DC Current Displayed: | Stop Charge Voltage: | |||||||||||||||||||||||||||||||||||||||||||||||||
32 | End of Discharge: | Yes | No | N/A | DC Current Measured: | ||||||||||||||||||||||||||||||||||||||||||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E4 | E4 | =TODAY() |
E5 | E5 | ='C:\Users\jason.hoetmer\Desktop\QA Master Template\Section #1 (Pre Job)\[DCS# 7.3.1 ITP.xlsx]Sheet1'!$E$5:$M$5 |
R4 | R4 | ='C:\Users\jason.hoetmer\Desktop\QA Master Template\Section #1 (Pre Job)\[DCS# 7.3.1 ITP.xlsx]Sheet1'!$R$4:$AF$4 |
R5 | R5 | ='C:\Users\jason.hoetmer\Desktop\QA Master Template\Section #1 (Pre Job)\[DCS# 7.3.1 ITP.xlsx]Sheet1'!$R$5:$AF$5 |
AM4 | AM4 | ='C:\Users\jason.hoetmer\Desktop\QA Master Template\Section #1 (Pre Job)\[DCS# 7.3.1 ITP.xlsx]Sheet1'!$AM$4:$BA$4 |
AM5 | AM5 | ='C:\Users\jason.hoetmer\Desktop\QA Master Template\Section #1 (Pre Job)\[DCS# 7.3.1 ITP.xlsx]Sheet1'!$AM$5:$BA$5 |