Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Hope someone can help. I created a form and has a text box in it. User key in the name of the worksheet in the text box but I stumble upon a compile error. My code is as below Private Sub cmdUpdate_Click() Dim fname, ws1 As String Dim ws As Worksheet fname = txtFileName Workbooks.Open fname Set ws = txtWorksheet If ws = "" Then MsgBox "Please input name of Worksheet" End If Call Module1.CopyPrice(ws, 4) End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
automatically appending newly added data on worksheet to a master list worksheet | Links and Linking in Excel | |||
Unable to Insert Worksheet/Move and copy worksheet Excel 2003 | Excel Worksheet Functions | |||
plot graph from multiple worksheet as embedded chart object on every worksheet | New Users to Excel | |||
Upload multiple text files into 1 excel worksheet + put the filename as the first column in the worksheet | Excel Worksheet Functions | |||
Attaching a JET database to an Excel Worksheet OR storing large binary data in a worksheet | Excel Programming |