Worf
Well-known Member
- Joined
- Oct 30, 2011
- Messages
- 4,259
Worf submitted a new Excel article:
VBA – Transferring picture to worksheet pixel by pixel - This code shows how to transfer an image to worksheet cells. Each pixel will correspond to a cell.
Read more about this Excel article...
VBA – Transferring picture to worksheet pixel by pixel - This code shows how to transfer an image to worksheet cells. Each pixel will correspond to a cell.
Say that you want to analyze the color distribution of a given picture. One way to do this is to have each worksheet cell representing one image pixel.
To use the code, run the transfer routine, specifying the sheet and the shape name.
View attachment 30058
VBA Code:#If VBA7 Then Public Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As LongPtr) 'For 64 Bit Systems #Else Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) 'For 32 Bit...
Read more about this Excel article...