473,396 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Excel & a .JPG file

harshadd
176 100+
I have a JPG file, and an EXcel sheet sheet1 of Book1 with default settings.I am inserting .JPG on the sheet 1and stretching it by keeping aspect ratios same. so that Pict occupies maximum of spreadsheet but keeps the height v/c width proportions same.
Now that pict is enlarged.
Now suppose a verry small part of the picture covering cell A1 is having colour red RGB(255.0.0) then I want cell A1 feeled by RGB(255,0,0)
I can run following code to change the cell colour
Sub Macro1()
Range("A1").Select
With Selection.Interior
.Color = RGB(255 0, 0)
.Pattern = xlSolid
End With
End Sub

but need to know what is the color to set. Can any one tell how can I link between cell Name and the part of picture covering it?

You can guess now what will happend if all cells are changed with the respective colors of picture covering them...
Jul 25 '08 #1
1 1067
harshadd
176 100+
ANY ONE? Try to solve this ...
I want this to result in an Excel spreadsheet with an Image PIXELIED on cells of the sheet, so that if you seen the entire worksheet by reducing its view to (say) less than 10% then u can see and recognize the original picture.
In normal view only colour full cells will be seen and no 1 can make out what is it till they see it in reduced size of view.


Give a try.. Its a fun. I know it may not add any value to day-to-day life but still.. I am trying my best on this. I will let u guys know if I could do that...
Rgds
harshadD
Jul 29 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: David Alliet | last post by:
Hello, I'm having a bit of a problem with ASP and Excel. A client has developed his own program, which calculates alot of financial stuff, in excel. I'm doing his websites and he has requested...
5
by: nivas.meda | last post by:
Hi, I have an excel sheet with a graph and cells.If i change the value in the excel cells the graph will reflect.Now i am going to implement this functionality in html page.I successfully saved...
2
by: John Saunders | last post by:
Ok, this is what I need to accomplish. We have a huge excel file that comes in daily. I need the server to grab this excel file each day and import the data into a SQL database. Once that is...
1
by: | last post by:
The following code: Private Sub ClearControls(ByVal ctrl As Control) Dim i As Int32 For i = ctrl.Controls.Count - 1 To 0 Step -1 ClearControls(ctrl.Controls(i))
4
by: Lewis Edward Moten III | last post by:
I have a file that users can download through a web page protected by forms authentication: Download.aspx?ID=45 and within that file ... FileInfo fileToDownload = new FileInfo(fileName);
0
by: et | last post by:
I am trying to follow http://msdn2.microsoft.com/en-us/library/aa701256(office.11).aspx#Office2003Integratingwithaspnet20_CreatingtheWord2003DocumentTemplate which appears to be absolutely useless...
0
by: dt | last post by:
I downloaded Microsoft Office 2003 Reference Schemas from: http://www.microsoft.com/downloads/details.aspx?familyid=fe118952-354... Then I tried to use JAXB on them, specifically excel.xsd and...
4
by: Suzette | last post by:
I have an excel file that automatically updates when opened, pulling information from an Access database into into various pivot tables. I created a macro in Access to perform various necessary...
4
by: kkadakia | last post by:
I have a VB code that will allow me to browse for a Excel file. After selecting that file, I want it to imported into Access. Following is the code for browsing a Excel file: Private Sub...
6
by: slinky | last post by:
I found the following code to transfer datagrid data to an Excel file. Is this written in C#?... I'm a vb.netter. I'm just not sure where to place the code to experiment on it. Should I place it in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.