It can be done easily by addingWorksbooks.open Filename:=command in macro.
Eg: Workbooks.Open Filename:= _"C:\Documents and Settings\abcabc\My Documents\Company List.xls"
If you like to create a particular macro for this purpose, the following lines will be helpful for you
Sub OpenWorkbook()
'
' OpenWorkbook Macro
' To Open Another workbook automatically
'
'
Workbooks.Open Filename:= _
"C:\Documents and Settings\ABABC\My Documents\Company List.xls"
End Sub
Hope this will solve your issue
Balu
One way would be to prompt the user to choose a workbook from those currently open (or browse for one that isn't). However, an easier approach is to simply run the macro on the currently active workbook by assigning the macro to a toolbar button.
how am i surpose to no?? go on the internet and find out for your self !!
It is a macro-enabled workbook from Office 2007.
The following is a record macro copied into the workbook open section of the workbooks properties. Enters date in a1 Private Sub Workbook_Open() Range("a1").Activate ActiveCell.FormulaR1C1 = Now() Selection.NumberFormat = "dd/mm/yyyy;@" End Sub The macro run's it's self when the file opens
I believe you are referring to a macro. Could also be an IF statement.
You can open the Macro dialog box by pressin Alt - F8. Then choose the macro you want and click Edit and it will bring you into the code of the macro. You do need to be careful and to be sure you know what you are doing before changing anything.
A macro is a record of a series of key presses, and is saved with a macro name. When the macro name is run, the previously saved key presses are automatically carried out.
Macros can be stored in various ways depending on the software being used. In applications like Microsoft Excel, they can be saved within the workbook itself or in a separate macro-enabled file format (e.g., .xlsm). Additionally, macros can be stored in a personal macro workbook, allowing them to be accessible across multiple workbooks. For programming environments, macros may be stored in script files or code libraries.
religion is a macro culture, a macro culture is a sub division of a culture
Excel 2003: .xls = Workbook .xla = VBA Add-in .xlb = Toolbar (where custom toolbar settings are stored) .xlc = Chart .xld = Dialog (from older versions of Excel) .xlk = Archive (Excel spreadsheet backup) .xll = DLL Add-in .xlm = Macro .xlt = Template .xlv = VBA Module .xlw = Workspace (collection of multiple Workbooks) Excel 2007 and Excel 2010: .xlsx = Workbook (XML format) .xlsm = Macro-enabled Workbook .xlsb = Excel Binary Workbook (instead of XML format) .xltm = Macro-enabled Template .xlam = Add-in (XML format)
To create a macro in QA4, first open the Macro Editor from the "Tools" menu. Use the scripting language provided to define the sequence of actions you want the macro to perform, ensuring you specify any necessary parameters. After writing your script, save the macro with a descriptive name. Finally, you can run the macro directly from the Macro Manager or assign it to a keyboard shortcut for easier access.
Macro-invertebrates are animals that are big enough to see with the naked eye, and that do not have a backbone.