Nghastell Newydd Emlyn

CHWYDDO CELLE CORREGGIBILI

  Dydd Mercher, 06 2022 Gorffennaf
  1 atebion
  Ymweliadau 6.4K
0
Pleidleisiau
Dadwneud
Buongiorno a tutti,

ho trovato un codice molto utile sul sito che ingrandisce la cella una volta selezionata. tuttavia la ingrandisce come immagine e quindi non è possibile cambiarne il contenuto, cosa che invece vorrei fare .....in pratica vorrei ingrandire la cella selezionandola per poi correggerne il contenuto, se necessariotariotarmi aiuto ? nel seguito il Cod....GRAZIE!!!!!!!


Private Sub worksheet_selectionchange(ByVal Target As Range)
'Updateby Extendoffice
Dim xRg As Range
Dim xCell As Range
Dim xShape As Variant
Set xRg = Target.Areas(1)
For Each xShape In ActiveSheet.Pictures
If xShape.Name = "zoom_cells" Then
xShape.Delete
End If
Next
If Application.WorksheetFunction.CountBlank(xRg) = xRg.Count Then Exit Sub
Application.ScreenUpdating = False
xRg.CopyPicture appearance:=xlScreen, Format:=xlPicture
Application.ActiveSheet.Pictures.Paste.Select
With Selection
.Name = "zoom_cells"
With .ShapeRange
.ScaleWidth 1.5, msoFalse, msoScaleFromTopLeft
.ScaleHeight 1.5, msoFalse, msoScaleFromTopLeft
With .Fill
.ForeColor.SchemeColor = 44
.Visible = msoTrue
.Solid
.Transparency = 0
End With
End With
End With
xRg.Select
Application.ScreenUpdating = True
Set xRg = Nothing
End Sub

1 flwyddyn yn ôl
·
#2863
0
Pleidleisiau
Dadwneud
Hi 'na,

Mae'n ddrwg gennym na allwch olygu'r gell wedi'i chwyddo gyda chod VBA. Fodd bynnag, gallwch chi ddefnyddio Kutools ar gyfer Excel's Bar Fformiwla Mwy nodwedd:

mwy-fformiwla.png

Os nad oes gennych Kutools ar gyfer Excel wedi'i osod yn eich cyfrifiadur, cliciwch ar y ddolen isod i'w lawrlwytho. Mae'r ychwanegiad yn cynnig treial nodwedd lawn am 30 diwrnod: https://www.extendoffice.com/product/kutools-for-excel.html

Amanda
Atodiadau (1)
  • Tudalen:
  • 1
Ni wnaed unrhyw atebion i'r swydd hon eto.