Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Use A Command Button more than one time

Quick Question, Hope someone can please help...I need to use a Command
Button. Users would click the button to insert a photo, from which
they choose from an insert dialog window, onto the sheet. The photo
would be placed at cell B4 automatically. Then, to insert a second
photo, the user would press the same Command Button and insert a
photo, but the photo would be placed at cell M4. The user would keep
going using the same command button, if they would need to insert more
photos. Can this be done with the programming using the same command
button? Can someone shout out some code maybe? Appreciate any
assistance.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Use A Command Button more than one time

I would think so--if you're careful.

Each time you add the picture, you could name the picture after its location:

Pict_B4
Pict_M4
Pict_whatever....

Then before you add any picture, you could look for pictures in that named
order. If pict_m4 doesn't exist, then that's where it would be added.



Bull wrote:

Quick Question, Hope someone can please help...I need to use a Command
Button. Users would click the button to insert a photo, from which
they choose from an insert dialog window, onto the sheet. The photo
would be placed at cell B4 automatically. Then, to insert a second
photo, the user would press the same Command Button and insert a
photo, but the photo would be placed at cell M4. The user would keep
going using the same command button, if they would need to insert more
photos. Can this be done with the programming using the same command
button? Can someone shout out some code maybe? Appreciate any
assistance.


--

Dave Peterson
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
Adding Code to Command Button at Run Time Kevin E. Excel Programming 1 September 20th 06 12:25 AM
Command Button Date/Time Stamp sky Excel Programming 4 January 11th 06 12:04 AM
How can i use a command button to validate date and time kcdonaldson Excel Discussion (Misc queries) 0 December 9th 05 04:03 PM
Command Button run-time error Dominique Feteau Excel Programming 1 June 29th 04 02:57 AM
Run-time error on command button Phil Hageman[_3_] Excel Programming 4 November 4th 03 08:06 PM


All times are GMT +1. The time now is 11:31 PM.

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"