Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I have a Userform set up on a workbook called ISSUE.xls the closed workbook is called REGISTER.xls How can I get the value of the last cell in column A from a closed workbook and then place that value into a Textbox on the Userform? Thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Open the workbook, read the value, close it. You do not have to show it, but
you have to open it to read it. "Jon Atkins" wrote in message ... Hi I have a Userform set up on a workbook called ISSUE.xls the closed workbook is called REGISTER.xls How can I get the value of the last cell in column A from a closed workbook and then place that value into a Textbox on the Userform? Thanks. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'd use a cell in a worksheet (hidden??) or just out of the way:
=LOOKUP(2,1/('C:\My Documents\excel\[register.xls]Sheet1'!$A$1:$A$9999<""), 'C:\My Documents\excel\[register.xls]Sheet1'!$A$1:$A$9999) (all one cell) Then populate the textbox from that cell. (change 9999 to a big number, but don't use the whole column) Jon Atkins wrote: Hi I have a Userform set up on a workbook called ISSUE.xls the closed workbook is called REGISTER.xls How can I get the value of the last cell in column A from a closed workbook and then place that value into a Textbox on the Userform? Thanks. -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Sat, 18 Sep 2004 07:05:45 -0500, Dave Peterson
wrote: I'd use a cell in a worksheet (hidden??) or just out of the way: =LOOKUP(2,1/('C:\My Documents\excel\[register.xls]Sheet1'!$A$1:$A$9999<""), 'C:\My Documents\excel\[register.xls]Sheet1'!$A$1:$A$9999) (all one cell) Then populate the textbox from that cell. (change 9999 to a big number, but don't use the whole column) That did the trick I had hacked and slashed at some of Ron de Bruin's code, but your method has tidied up a mess and reduced the file size. Many thanks to both you and Bob kilmer for replying |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Export cell data to closed workbook | Excel Discussion (Misc queries) | |||
Consolidation of data from cell in active sheet of closed workbook | Excel Worksheet Functions | |||
copy worksheet from closed workbook to active workbook using vba | Excel Worksheet Functions | |||
Linking to a cell in another (closed) workbook | Excel Programming | |||
Getting value from closed workbook | Excel Programming |