Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default how to replace drawing with text in that cell

I have imported data from web to excel and it comes with check boxes
(picture). When I select any particular cell with that check box, cell is
empty. I need to export this information in my Access database. When I do
that no check box is exported. Check boxes are marked as "picture 1" to
"picture 340". Every check box have diff. name. Is there any way I can
replace this check boxes with text as "YES" in the respective cell.

Please help

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default how to replace drawing with text in that cell

Pictures are considered as shapes in Excel. You could try looping
through each picture.

Dim shp as shape

For each shp in activesheet.shapes
shp.delete
Next shp

This should start you off. You then need to tackle writing YES in the cell.

HTH,
Gareth

Hshah wrote:
I have imported data from web to excel and it comes with check boxes
(picture). When I select any particular cell with that check box, cell is
empty. I need to export this information in my Access database. When I do
that no check box is exported. Check boxes are marked as "picture 1" to
"picture 340". Every check box have diff. name. Is there any way I can
replace this check boxes with text as "YES" in the respective cell.

Please help

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default how to replace drawing with text in that cell

Building on Gareth's suggestion...

Option Explicit
Sub testme()
Dim Pict As Picture
For Each Pict In ActiveSheet.Pictures
If LCase(Pict.Name) Like "picture *" Then
Pict.TopLeftCell.Value = "Yes"
Pict.Delete
End If
Next Pict
End Sub

Hshah wrote:

I have imported data from web to excel and it comes with check boxes
(picture). When I select any particular cell with that check box, cell is
empty. I need to export this information in my Access database. When I do
that no check box is exported. Check boxes are marked as "picture 1" to
"picture 340". Every check box have diff. name. Is there any way I can
replace this check boxes with text as "YES" in the respective cell.

Please help

Thanks


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default how to replace drawing with text in that cell

Thanks Dave it works perfact.

Thanks Again.
Himanshu

"Dave Peterson" wrote:

Building on Gareth's suggestion...

Option Explicit
Sub testme()
Dim Pict As Picture
For Each Pict In ActiveSheet.Pictures
If LCase(Pict.Name) Like "picture *" Then
Pict.TopLeftCell.Value = "Yes"
Pict.Delete
End If
Next Pict
End Sub

Hshah wrote:

I have imported data from web to excel and it comes with check boxes
(picture). When I select any particular cell with that check box, cell is
empty. I need to export this information in my Access database. When I do
that no check box is exported. Check boxes are marked as "picture 1" to
"picture 340". Every check box have diff. name. Is there any way I can
replace this check boxes with text as "YES" in the respective cell.

Please help

Thanks


--

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
replace part text in a cell Indra Excel Discussion (Misc queries) 3 December 8th 08 03:29 AM
Can I replace a ' at the beginning of a text cell using Replace Hilde Excel Discussion (Misc queries) 4 September 10th 07 06:22 PM
find text in cell and replace it with part of the text in that ce. jules Excel Discussion (Misc queries) 3 May 3rd 07 10:18 AM
How do I change replace text in a cell for different text? ronedwards Excel Worksheet Functions 4 August 18th 06 03:31 AM
Replace text given a value in other cell teuscher1 Excel Programming 0 November 17th 04 04:52 PM


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