Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this and let me know if it makes a difference:
Public Function GetValueFromSheet(C As String, L As Integer) As String FName = ActiveSheet.Cells(1, 4).Value SName = ActiveSheet.Cells(1, 5).Value GetValueFromSheet = Workbooks(FName).Worksheets.(SName).Range(C L).Value End Function - Piku -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
starting macro again | Excel Discussion (Misc queries) | |||
Starting macro | Excel Discussion (Misc queries) | |||
Starting A Macro | Excel Discussion (Misc queries) | |||
starting a macro at startup | Excel Discussion (Misc queries) | |||
Starting a macro with the IF function | Excel Worksheet Functions |