Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
replace part text in a cell | Excel Discussion (Misc queries) | |||
Can I replace a ' at the beginning of a text cell using Replace | Excel Discussion (Misc queries) | |||
find text in cell and replace it with part of the text in that ce. | Excel Discussion (Misc queries) | |||
How do I change replace text in a cell for different text? | Excel Worksheet Functions | |||
Replace text given a value in other cell | Excel Programming |