Excel'de çalışma sayfasından kullanıcı formuna nasıl resim kopyalanır?
Bu makale, Excel'de etkin çalışma sayfasından Kullanıcı Formuna bir resim kopyalama yöntemlerini gösterecektir.
Kopyalama ve yapıştırma ile çalışma sayfasından kullanıcı formuna resim kopyalama
VBA kodu ile çalışma sayfasından kullanıcı formuna resim kopyalama
Kopyalama ve yapıştırma ile çalışma sayfasından kullanıcı formuna resim kopyalama
Lütfen aşağıdaki adımları izleyerek bir çalışma sayfasından kullanıcı formuna bir resim kopyalayın.
1. Resmi kopyalamak istediğiniz çalışma sayfasına geçin ve ardından Microsoft Visual Basic for Applications penceresini açmak için Alt + F11 tuşlarına birlikte basın.
2. Microsoft Visual Basic for Applications penceresinde lütfen Ekle > Kullanıcı Formu'na tıklayın. Ekran görüntüsüne bakın:
3. Şimdi lütfen Kullanıcı Formuna bir Resim Kontrolü ekleyin. Araç Kutusu iletişim kutusundaki Resim düğmesine tıklayın, ardından el ile Kullanıcı Formuna bir Resim Kontrolü çizin. Ekran görüntüsüne bakın:
4. Eklenen Resim kontrolünü sağ tıklayın ve aşağıdaki ekran görüntüsünde gösterildiği gibi bağlam menüsünden Özellikler'i tıklayın:
5. Daha sonra Microsoft Visual Basic for Applications penceresinin sol tarafında bir Özellikler panelinin göründüğünü görebilirsiniz.
6. Çalışma sayfasına geri dönün ve Kullanıcı Formunda görüntülemek istediğiniz resmi seçin ve ardından Ctrl + C tuşlarına basarak resmi kopyalayın.
7. Microsoft Visual Basic for Applications penceresine tekrar girin, aşağı kaydırıp Resim alanına tıklayın ve ardından Alfabetik sekmesi altında kopyalanan resim adını buraya yapıştırın.
Şimdi çalışma sayfasındaki resim Kullanıcı Formuna kopyalanmıştır.

Kutools AI ile Excel Sihirini Keşfedin
- Akıllı Yürütme: Hücre işlemleri gerçekleştirin, verileri analiz edin ve grafikler oluşturun—tümü basit komutlarla sürülür.
- Özel Formüller: İş akışlarınızı hızlandırmak için özel formüller oluşturun.
- VBA Kodlama: VBA kodunu kolayca yazın ve uygulayın.
- Formül Yorumlama: Karmaşık formülleri kolayca anlayın.
- Metin Çevirisi: Elektronik tablolarınız içindeki dil engellerini aşın.
VBA kodu ile çalışma sayfasından kullanıcı formuna resim kopyalama
Bu bölüm, çalışma sayfasından birden fazla resmi Kullanıcı Formuna kopyalamak ve ardından bir Açılır Liste kutusundan resim adını seçerek Kullanıcı Formunda ilgili resmi görüntülemek için size bir çözüm sunacaktır. Lütfen aşağıdaki adımları izleyin.
1. Lütfen yukarıdaki 1. ve 2. adımı izleyerek çalışma sayfanıza bir Kullanıcı Formu ekleyin.
2. Then insert a Frame Control into the UserFrom as below screenshot shown:
3. Right-click the inserted Frame, and select Properties from the context menu. In the left Properties pane, please select False from the Visible field. See screenshot:
4. Insert multiple Image control into the Frame as below screenshot shown.
5. Go back to the worksheet and select the picture you want to display in the Userform, and press the Ctrl + C keys to copy it.
6. Get into the Microsoft Visual Basic for Applications window, right-click the first Image control, and select Properties from the right-clicking menu. See screenshot shown.
7. In the Properties pane, please click on the Picture field, then press the Ctrl + V keys to paste the picture you copied in step 5, and then select 1 – fmPictureSizeModeStrtch from the PictureSizeMode drop-down list as below screenshot shown.
8. Repeat the step 5 - 7 to paste other pictures from worksheet to the left Image controls in the UserForm. And the result will display as below screenshot shown.
9. Move the Frame control to the corner of the UserForm, then insert a new Image control and a Combo Box control into the UserForm. See screenshot:
10. Right-click the UserForm, and then click View Code. Then copy and paste below VBA code to replace the original one into the Code window.
VBA code1: Copy image from worksheet to Userform
Private Sub ComboBox1_Change()
UserForm1.Controls.Item("Image4").Picture = UserForm1.Controls.Item(UserForm1.ComboBox1.Value).Picture
End Sub
Private Sub UserForm_Initialize()
Dim xImg As Control
On Error Resume Next
For Each xImg In UserForm1.Controls
If TypeName(xImg) = "Image" And xImg.Name <> "Image4" Then
UserForm1.ComboBox1.AddItem xImg.Name
End If
Next
End Sub
Note: In the code, UserForm1 is the name of the inserted UserForm, Image4 is the name of the Image control you will display pictures inside. And Image represents all Image controls which contain the pictures you copied from the worksheet. ComboBox1 is the combobox name you have inserted into the userform. Please change them to your own.
11. Close the Microsoft Visual Basic for Applications window.
12. Insert a Command button into the worksheet by clicking Developer > Insert > Command Button (ActiveX Control).
13. Right-click the command button and select View Code from the Context menu. And then copy and paste the below VBA code into the Code window. And finally close the window.
VBA code2: Copy image from worksheet to Userform
Private Sub CommandButton1_Click()
UserForm1.Show
End Sub
15. Click Developer > Design Mode to turn off the Design Mode.
From now on, when clicking the command button, the UserForm will pop up. You can display picture by selecting the image name from the combo box. See screenshot:
Select different names from the combo box will display different pictures in the UserForm.
Related Articles:
- How to center a picture in an Excel cell?
- How to check if a cell contains picture in Excel?
- How to insert image or picture dynamically in cell based on cell value in Excel?
- How to enlarge image when click on it in Excel?
En İyi Ofis Verimlilik Araçları
Kutools for Excel ile Excel becerilerinizi geliştirin ve daha önce hiç olmadığı kadar verimli olun. Kutools for Excel, üretkenliğinizi artırmak ve zamanınızı kaydetmek için300'den fazla gelişmiş özellik sunar. En çok ihtiyacınız olan özelliği almak için buraya tıklayın...
Office Tab, Office'e sekmeli arayüz getirir ve işinizi çok daha kolaylaştırır
- Word, Excel, PowerPoint'te sekmeli düzenleme ve okuma özelliğini etkinleştirin.
- Aynı pencerenin yeni sekmelerinde birden fazla belge açın ve oluşturun, yeni pencerelerde değil.
- Verimliliğinizi %50 artırır ve her gün yüzlerce fare tıklamasını azaltır!