Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for all inputs so far and sorry this is a seperate thread.
I am nearly there..... I have:- CellSel = Range("E1") i = ActiveSheet.Shapes.Count Line1 = "Sub CommandButton" & i & "_Click" With ActiveWorkbook.VBProject.VBComponents(ActiveSheet. CodeName).CodeModule X = .CountOfLines .InsertLines X + 1, Line1 .InsertLines X + 2, "d=" & CellSel .InsertLines X + 3, "End Sub" End With where cell E1 contains text Hello and i=1 in this case. This give me the commandbutton code of:- Sub CommandButton1_Click() d=Hello End Sub But I need the Hello in quotes ("Hello")....d= "Hello". How can I do this. Cheers Folkes. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
MSN stock quotes - Error message "problem displaying attributes" | Excel Discussion (Misc queries) | |||
how to copy contents of a cell and remove any quotes " " | Excel Discussion (Misc queries) | |||
"MSN MONEY STOCK QUOTES" NOT OPENING IN 2002 | Excel Worksheet Functions | |||
"formula is too long" AND test for whether double-quotes are next-to text or number?? | Excel Discussion (Misc queries) | |||
Saving as Text (tab delimited) surrounds text with "quotes" | Excel Discussion (Misc queries) |