Makro z aparatem fotograficznym

abond57

New Member
Joined
Aug 27, 2020
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Witam.
Po zarejestrowaniu makra z użyciem aparatu fotograficznego.
W kodzie myśli się zapis np.:
ActiveSheet.Shapes.AddShape (, 256,8, 73,2, 190,8, 190,8)
bez podanego Typu i zatrzymuje się w tym miejscu przy ponownym uruchomieniu.
Czy można to jakoś "ugryźć" ?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
[I hope google translates this well enough for it to be helpful. Mam nadzieję, że Google przetłumaczy to wystarczająco dobrze, aby było pomocne. ]

Rejestrator makr powinien rejestrować stałą odpowiadającą dodawanemu kształtowi.

Code:
Sub AddOvalAndTriangle()
    With ActiveSheet.Shapes
        .AddShape msoShapeOval, 150, 20, 180, 90
        .AddShape msoShapeIsoscelesTriangle, 150, 150, 100, 100
    End With
End Sub

Listę różnych stałych kształtu można znaleźć za pomocą eksploratora obiektów w VBE lub pod tym linkiem:

 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,397
Members
449,081
Latest member
JAMES KECULAH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top