Fwd: $$Excel-Macros$$ Insert picture in an excel's many sheets

2013-06-06 Thread Pravin Gunjal
Dear Mr Ashish

The file is attached with picture/logo which is very simple.  I want this
picture/logo (or any other picture/logo) to be inserted in all the sheets
at a time.  Is it possible in excel?

Thanks in advance.

Regards
Pravin Gunjal.

-- Forwarded message --
From: ashish koul 
Date: Thu, Jun 6, 2013 at 8:32 PM
Subject: Re: $$Excel-Macros$$ Insert picture in an excel's many sheets
To: excel-macros 


can u share the sample file


On Thu, Jun 6, 2013 at 11:32 AM, Pravin Gunjal  wrote:

> Is it possible to insert the same picture in many sheets of an excel file.
>
> If so request to please provide the solution.
>
> Regards
> Pravin Gunjal.
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Book1.xlsx
Description: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet


Fwd: $$Excel-Macros$$ Insert picture in an excel's many sheets

2013-06-07 Thread Pravin Gunjal
Thanks Ashish Jee

Both the codes are working fine for one picture, but what if I wants to
insert to picture instead of one?

Thanks
Pravin Gunjal

-- Forwarded message --
From: ashish koul 
Date: Fri, Jun 7, 2013 at 8:02 PM
Subject: Re: $$Excel-Macros$$ Insert picture in an excel's many sheets
To: excel-macros 


add image to first sheet then re-size it as per ur requriment

then try this macro
Sub test2()
Dim i As Long

Sheet1.Shapes("Picture 1").Copy
For i = 2 To Sheets.Count
Sheets(i).Paste
Sheets(i).Shapes(Sheets(i).Shapes.Count).Top =
Sheet1.Shapes("Picture 1").Top
Sheets(i).Shapes(Sheets(i).Shapes.Count).Left =
Sheet1.Shapes("Picture 1").Left
Next


End Sub


or try this one for direct insert

Sub test()
Dim wk As Worksheet

For Each wk In ThisWorkbook.Worksheets
wk.Pictures.Insert ("C:\Users\Public\Pictures\Sample
Pictures\desert.jpg")
With wk.Shapes(wk.Shapes.Count)
.Left = wk.Range("a1").Left
.Top = wk.Range("a1:c2").Top
.Width = wk.Range("a1:c2").Width
End With
Next



End Sub




On Fri, Jun 7, 2013 at 9:50 AM, Pravin Gunjal  wrote:

> Dear Mr Ashish
>
> The file is attached with picture/logo which is very simple.  I want this
> picture/logo (or any other picture/logo) to be inserted in all the sheets
> at a time.  Is it possible in excel?
>
> Thanks in advance.
>
> Regards
> Pravin Gunjal.
>
> -- Forwarded message --
> From: ashish koul 
> Date: Thu, Jun 6, 2013 at 8:32 PM
> Subject: Re: $$Excel-Macros$$ Insert picture in an excel's many sheets
> To: excel-macros 
>
>
> can u share the sample file
>
>
> On Thu, Jun 6, 2013 at 11:32 AM, Pravin Gunjal  wrote:
>
>> Is it possible to insert the same picture in many sheets of an excel file.
>>
>> If so request to please provide the solution.
>>
>> Regards
>> Pravin Gunjal.
>>
>  --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at http://groups.google.com/group/excel-macros?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
*Regards*
* *
*Ashish Koul*


*Visit*
*My Excel Blog *
Like Us on 
Facebook
Join Us on Facebook 


P Before printing, think about the environment.



-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
will not get quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security
measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE : Don't ever post confidential data in a workbook. Forum owners and
members are not responsible for any loss.
---
You received this message because you are subscribed to the Google Groups
"MS EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Hel