Hello,
I was wondering how I can keep my trailing zeros when I reference a cell from one sheet to another sheet in a = text & value & value statement
And the numbers of zeros is going to be different so setting it with Fixed isn't going to work, I don't think.
I have 2 sheets
Sheet1
Sheet2
in Sheet1 M column I have values, each one is going to be different, and some of them may have one or more trailing zeros. I need to show any zeros shown and Sheet2 needs to have a reference to Sheet1.
I have a if with loop that goes through each cell in M column on sheet one and references them on Sheet2 in the .Value in the code below adding a plusminus and value from another cell in Sheet2
Example
Sheet2 E17 value = "V"
Sheet1.M17 value is 18.0000
Sheet2 is supposed to display ±18.0000V
instead my code only shows ±18V
And I should be able to click on the cell in Sheet2 and in the formula bar, it should show the reference I cant have it just be text. Because the value on Sheet1 may change and it needs to reflect on Sheet2.
It needs to show all the zeros in Sheet1 whether it be 1 zero or 5, even though I know 18 and 18.0000 are the same.
Thank you anyone in advance Any help would be greatly appreciated.
I was wondering how I can keep my trailing zeros when I reference a cell from one sheet to another sheet in a = text & value & value statement
And the numbers of zeros is going to be different so setting it with Fixed isn't going to work, I don't think.
I have 2 sheets
Sheet1
Sheet2
in Sheet1 M column I have values, each one is going to be different, and some of them may have one or more trailing zeros. I need to show any zeros shown and Sheet2 needs to have a reference to Sheet1.
I have a if with loop that goes through each cell in M column on sheet one and references them on Sheet2 in the .Value in the code below adding a plusminus and value from another cell in Sheet2
Example
Sheet2 E17 value = "V"
Sheet1.M17 value is 18.0000
Sheet2 is supposed to display ±18.0000V
instead my code only shows ±18V
And I should be able to click on the cell in Sheet2 and in the formula bar, it should show the reference I cant have it just be text. Because the value on Sheet1 may change and it needs to reflect on Sheet2.
Code:
="±" & ('Sheet1'!M17)&(Sheet2!E17)
It needs to show all the zeros in Sheet1 whether it be 1 zero or 5, even though I know 18 and 18.0000 are the same.
Code:
Dim lRow As long
lRow = Sheets("Sheet1").Cells(Rows.Count, "AAA").End(xlUp).Row
Dim i As Integer
For i = 7 To lRow
If IsNumeric(Sheets("Sheet1").Range("M" & i)) = True Then
With ACCws.Range("I" & i)
.Borders.LineStyle = xlNone
.Interior.Color = xlNone
.HorizontalAlignment = xlCenter
.Value = "=""±"" & ('Sheet1'!M" & i & ")" & "&" & "('Sheet2'!E" & i & ")"
End With
Thank you anyone in advance Any help would be greatly appreciated.