worksheet

How do I open a worksheet in vba?

Hilariously the following code only works if the worksheet is actually selected in the excel window. I really want to finish this macro soon but can't seem to work out how to select a specific worksheet so it is open in excel? Many thanks if someone knows how. I have to use range and so on. sheet.Range(Cells(firstRow, 2).Address(False, ...

How is non-standard worksheet.object created in this Excel VBA

The following VBA 6 in Excel 2000 code Resides in a form that has text boxes, comboboxes and buttons One of them is txtUsername, another is txtPassword --I inherited this code With shtName .Unprotect "thepassword" .range("somenamedrange").Value = cboComboBox.Value .txtUsername.Text = txtUsername.Text .txtPassword.Text = txtPassword.Te...

How do I "Create a Reference To a Different Workbook" that supports closed workbooks.

I want to do something like this: Create a Reference To a Different Workbook (look for this section in the page). However, the instruction says that the documents must be opened for the INDIRECT function to work. How can I make it work even if the documents are closed? Any other solutions / alternatives? I don't want to open each file...

Search for text in name range in Sheet 1and return Value in Sheet 2 using Excel VBA

Hi, I have something of the following : Sheet 1 (Name Range : Code) Column A -------- Column B School ------------ 1 College ----------- 2 University--------- 3 Sheet 2 Cell A1 = (Search for "College" in Name Range Code and get the Value of "2" as code. ) So value of 2 should be present in Cell A1. Please provide excel VBA ...

Customize the Cursor flow / direction on pressing enter in Excel worksheet / table grid using Excel VBA

I have a column as follows : Column A---------------Column B 100 ----------------- 500 200 ----------------- 600 AA ----------------- ABCD BB ----------------- DEFG CC ----------------- FF DD ----------------- GG EE -----------------II 300 ----------------- 700 400 ----------------- 800 I want the Cursor to be present at cell location...

How can I create new spreadsheet worksheets in Ruby using the Spreadsheet gem?

Specifically what I am trying to do is add new worksheets alongside ones already there. I've tried to use book.create_worksheet :name => 'new_sheet' but it overwrites the previous worksheet. I searched the site here and saw some people using a different gem that allowed "book.add_worksheet" (the Spreadsheet gem is supposed to have suppo...

Vb.net - Search Excel file for values

Hi! I have a form with a couple of combo boxes. The first combobox adds items based on each row in an excel sheet. Public Sub FetchExcelValues(ByVal ControlType As String, ByVal control As Object, ByVal xlApp As Object, ByVal xlWorkBook As Object, ByVal xlWorkSheet As Object, ByVal column As String, ByVal row As Integer) Dim iTelle...