Hi everyone,
I have a Workbook that I email to users, and from this workbook the users send emails to their team (these emails are one sheet from the workbook, that changes with data validation). I'm trying to find a way to have those sheets have a background, and feel that I am close.
I know how to apply a background from a file, and thought I could alter it, yet I'm having little success.
As it is now, I have the pictures stored on sheet named: "Picky"
and need to apply them to "Sheet1"
Here's the code that I have
This returns an error saying Type Mismatch.
Makes sense since it's not from a File, I've just been able to find proper syntax for this operation.
Anyone have any idea how I can get this to work?
Thank you for your time!
I have a Workbook that I email to users, and from this workbook the users send emails to their team (these emails are one sheet from the workbook, that changes with data validation). I'm trying to find a way to have those sheets have a background, and feel that I am close.
I know how to apply a background from a file, and thought I could alter it, yet I'm having little success.
As it is now, I have the pictures stored on sheet named: "Picky"
and need to apply them to "Sheet1"
Here's the code that I have
Code:
Sub newback()
Dim Pic As Excel.Picture
Windows("Beast.xlsm").Activate
Set Pic = Worksheets("Picky").Pictures("ForcePic")
Windows("Selection of Beast.xlsm May-16-2011.xlsx").Activate
Sheets("Sheet1").Select
ActiveSheet.SetBackgroundPicture Filename:= Pic
End Sub
Makes sense since it's not from a File, I've just been able to find proper syntax for this operation.
Anyone have any idea how I can get this to work?
Thank you for your time!