Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I copy cell values in VBA

I have 2 sheets in the same workbook. Each cell in Sheet2 contains a picture
that was imported from a .png file.

In Sheet1, I'd like to have a button that, when clicked, selects 5 random
pictures from the cells in Sheet2 and copies them to 5 pre-selected cells in
Sheet1. The VBA code that generates the random numbers and maps them to the
appropriate cells in Sheet2 is working fine, but I can't get the actual
copying from one sheet to the other to work. Is this doable, and can I do it
without having the sheets flash back and forth in the screen? Ideally, I'd
like to see each selected cell in Sheet1 just get filled with a picture.

I am a novice at VBA, and I thought I could do this in Excel, but maybe I
have to get VB and write a standalone application?

Thanks for any insight into this.

Jurado
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
Copy values from a cell based on values of another cell Spence10169 Excel Discussion (Misc queries) 4 January 13th 09 10:01 AM
Copy values to a different cell Kanga 85 Excel Worksheet Functions 2 December 10th 08 06:01 PM
copy graphs values in a cell bluepill Charts and Charting in Excel 3 June 29th 06 05:45 PM
How can I copy values from one cell in a column down to the next c GSingh Excel Discussion (Misc queries) 9 August 16th 05 11:18 AM
Copy Values to Below last Populated Cell Q John Excel Programming 2 June 29th 04 05:28 PM


All times are GMT +1. The time now is 02:37 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"