aayaanmayank
Board Regular
- Joined
- Jul 20, 2018
- Messages
- 157
Hi
Can anyone please help me on this. i have created macro which create an image by collating text boxes and shapes. how while pasting that in to outlook i am getting Grey border. which i need to remove.
is there any way to remove.
below is the code which is creating image.
Can anyone please help me on this. i have created macro which create an image by collating text boxes and shapes. how while pasting that in to outlook i am getting Grey border. which i need to remove.
is there any way to remove.
below is the code which is creating image.
VBA Code:
Sub createcopy()
Dim sh As Worksheet
Dim lr As Variant
Application.DisplayAlerts = False
Set sh = ThisWorkbook.Sheets("Template")
lr = sh.Range("A" & Application.Rows.Count).End(xlUp).Row - 1
Worksheets("Template").Range("A1:Q" & lr).CopyPicture xlScreen, xlPicture
Sheets("Sheet1").Activate
Sheets("Sheet1").Paste
End Sub