Excel Crashing after copying comments over

swebb5

New Member
Joined
Jul 10, 2017
Messages
1
I have been trying to copy comments over using VBA and every time I do it will work until I open the excel file again and then it crashes. I don't know that it is a problem with the code but perhaps how the pictures are viewed. I have them as comments with the background being pictures.

lastcrtcrow = Sheets("CRTC").Cells(Rows.count, 1).End(xlUp).Row

For x = 2 To lastcrtcrow


If Sheets("CRTC").Cells(x, 3) = Sheet6.Range("D3") Then

Sheets("Search").Cells(i, 1) = "CRTC"
Sheets("Search").Cells(i, 2) = Sheets("CRTC").Cells(x, 1)
Sheets("Search").Cells(i, 3) = Sheets("CRTC").Cells(x, 2)
Sheets("Search").Cells(i, 4) = Sheets("CRTC").Cells(x, 3)
Sheets("Search").Cells(i, 5) = Sheets("CRTC").Cells(x, 4)
Sheets("Search").Cells(i, 6) = Sheets("CRTC").Cells(x, 5)
Sheets("Search").Cells(i, 7) = Sheets("CRTC").Cells(x, 6)

' 'Picture Cells
' Sheets("CRTC").Cells(x, 7).Copy
' Sheets("Search").Cells(i, 8).Select
' ActiveSheet.Paste

Sheets("Search").Cells(i, 9) = Sheets("CRTC").Cells(x, 8)
i = i + 1

End If

Next x
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,225,741
Messages
6,186,761
Members
453,370
Latest member
juliewar

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