Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Automatically insert pictures

Greetings All,

I am setting up a tool that users will insert 1-46 pictures from a
specific directory on their pc's.
It is already set up so that you click a button, insert pic 1, click
button and insert picture 2, etc.

I'd like to have the macro insert all the pictures but would like to
avoid the users having to deal with a run time error, instead I just
want it to stop, or better yet, display a message XX pictures inserted.
A stretch I am sure, so if it stops without the run time error I'll be
happy.

Thanks

Mike

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Automatically insert pictures

What is the runtime error you are getting? Can you post the relevant
section of your code? That'll make it a little easier.

Regards,
Steve
www.stkomp.com


excel programming wrote:
Greetings All,

I am setting up a tool that users will insert 1-46 pictures from a
specific directory on their pc's.
It is already set up so that you click a button, insert pic 1, click
button and insert picture 2, etc.

I'd like to have the macro insert all the pictures but would like to
avoid the users having to deal with a run time error, instead I just
want it to stop, or better yet, display a message XX pictures inserted.
A stretch I am sure, so if it stops without the run time error I'll be
happy.

Thanks

Mike


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Automatically insert pictures

One segment of the insert photo macro, any help is appreciated.

Sub Insert03()
Range("A182").Select
ActiveSheet.unprotect
ActiveSheet.Pictures.Insert("C:\dcir\3.JPG").Selec t
Selection.ShapeRange.LockAspectRatio = msoTrue
Selection.ShapeRange.Height = 324#
Selection.ShapeRange.Width = 432#
Selection.ShapeRange.IncrementLeft 70.5
ActiveSheet.PageSetup.printarea = "$A$1:$I$212"
Range("d114").FormulaR1C1 = "3"
Range("B180").Select
End Sub


wrote:
What is the runtime error you are getting? Can you post the relevant
section of your code? That'll make it a little easier.

Regards,
Steve
www.stkomp.com


excel programming wrote:
Greetings All,

I am setting up a tool that users will insert 1-46 pictures from a
specific directory on their pc's.
It is already set up so that you click a button, insert pic 1, click
button and insert picture 2, etc.

I'd like to have the macro insert all the pictures but would like to
avoid the users having to deal with a run time error, instead I just
want it to stop, or better yet, display a message XX pictures inserted.
A stretch I am sure, so if it stops without the run time error I'll be
happy.

Thanks

Mike


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Automatically insert pictures

Forgot to add: Runtime error: 1004
Unable to get the insert property of the pictures class.


excel programming wrote:
One segment of the insert photo macro, any help is appreciated.

Sub Insert03()
Range("A182").Select
ActiveSheet.unprotect
ActiveSheet.Pictures.Insert("C:\dcir\3.JPG").Selec t
Selection.ShapeRange.LockAspectRatio = msoTrue
Selection.ShapeRange.Height = 324#
Selection.ShapeRange.Width = 432#
Selection.ShapeRange.IncrementLeft 70.5
ActiveSheet.PageSetup.printarea = "$A$1:$I$212"
Range("d114").FormulaR1C1 = "3"
Range("B180").Select
End Sub


wrote:
What is the runtime error you are getting? Can you post the relevant
section of your code? That'll make it a little easier.

Regards,
Steve
www.stkomp.com


excel programming wrote:
Greetings All,

I am setting up a tool that users will insert 1-46 pictures from a
specific directory on their pc's.
It is already set up so that you click a button, insert pic 1, click
button and insert picture 2, etc.

I'd like to have the macro insert all the pictures but would like to
avoid the users having to deal with a run time error, instead I just
want it to stop, or better yet, display a message XX pictures inserted.
A stretch I am sure, so if it stops without the run time error I'll be
happy.

Thanks

Mike


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't insert pictures laurie New Users to Excel 2 April 5th 23 01:21 PM
Insert pictures AZU Excel Discussion (Misc queries) 5 March 6th 09 05:28 PM
Need Help with auto insert of pictures Bradley Wolosz New Users to Excel 3 August 25th 08 12:28 PM
Insert pictures TheRook Excel Programming 4 August 11th 06 02:58 PM
using VBA to insert a column of pictures andy hackett Excel Programming 14 June 28th 04 08:45 AM


All times are GMT +1. The time now is 09:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"