View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
suekay suekay is offline
external usenet poster
 
Posts: 1
Default Problem with removing qoutes from string

Hi, Can anyone help me with this problem?

I have 6 textboxes that I want to make visible on the excel page by
using a For loop. However I am having a problem with the quotes

Code:

For ModuleNo = 1 To 6
StrTxtCalcElevHeightorDepth = ("Txt_Calc_Elev_HeightorDepth_" &
ModuleNo & "")
StrTxtCalcElevHeightorDepth.Visible = True
Next ModuleNo

Txt_Calc_Elev_HeightorDepth_1 is a textbox

The code above means that StrTxtCalcElevHeightorDepth =
"Txt_Calc_Elev_HeightorDepth_1". The quotes are causing a problem -
anyone know how to remove them?


thank you


---
Message posted from http://www.ExcelForum.com/