Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default end command not working

I want to control Excel from MS access. I created exapp object.
everyting woks right but I can use this following command. Any help is
really appreciated.

for each wks in exApp.worksheets
lstcolumn = exApp.worksheets(wks.name).Range("A65536").end(xlu p).row

next

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default end command not working

for each wks in exApp.worksheets
lstcolumn = exApp.worksheets(wks.name).Range("A65536").end(-4162 ).row

next

--
Regards,
Tom Ogilvy


"sonu" wrote:

I want to control Excel from MS access. I created exapp object.
everyting woks right but I can use this following command. Any help is
really appreciated.

for each wks in exApp.worksheets
lstcolumn = exApp.worksheets(wks.name).Range("A65536").end(xlu p).row

next


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default end command not working

The app contains workbook. Workbooks contain sheets and sheets contain
ranges. You jump right from the app to the sheet without specifying a
workbook. Specify the book that you are working on and all should be well...
--
HTH...

Jim Thomlinson


"sonu" wrote:

I want to control Excel from MS access. I created exapp object.
everyting woks right but I can use this following command. Any help is
really appreciated.

for each wks in exApp.worksheets
lstcolumn = exApp.worksheets(wks.name).Range("A65536").end(xlu p).row

next


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default end command not working

I specify the workbook name also but it still does not work
Jim Thomlinson wrote:
The app contains workbook. Workbooks contain sheets and sheets contain
ranges. You jump right from the app to the sheet without specifying a
workbook. Specify the book that you are working on and all should be well...
--
HTH...

Jim Thomlinson


"sonu" wrote:

I want to control Excel from MS access. I created exapp object.
everyting woks right but I can use this following command. Any help is
really appreciated.

for each wks in exApp.worksheets
lstcolumn = exApp.worksheets(wks.name).Range("A65536").end(xlu p).row

next



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default end command not working

Thanks Tom this is working now.


Tom Ogilvy wrote:
for each wks in exApp.worksheets
lstcolumn = exApp.worksheets(wks.name).Range("A65536").end(-4162 ).row

next

--
Regards,
Tom Ogilvy


"sonu" wrote:

I want to control Excel from MS access. I created exapp object.
everyting woks right but I can use this following command. Any help is
really appreciated.

for each wks in exApp.worksheets
lstcolumn = exApp.worksheets(wks.name).Range("A65536").end(xlu p).row

next





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default end command not working

Post what you now have (the whole thing). Also you may need to use the number
(-4162) in place of xlUp as Tom suggested. If I am correct that depends on
how you bound the object... Also I assume that you have opened the book that
you are working on???
--
HTH...

Jim Thomlinson


"sonu" wrote:

I specify the workbook name also but it still does not work
Jim Thomlinson wrote:
The app contains workbook. Workbooks contain sheets and sheets contain
ranges. You jump right from the app to the sheet without specifying a
workbook. Specify the book that you are working on and all should be well...
--
HTH...

Jim Thomlinson


"sonu" wrote:

I want to control Excel from MS access. I created exapp object.
everyting woks right but I can use this following command. Any help is
really appreciated.

for each wks in exApp.worksheets
lstcolumn = exApp.worksheets(wks.name).Range("A65536").end(xlu p).row

next




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 341
Default end command not working

Tom, why? What is the -4162?

--
Allllen


"Tom Ogilvy" wrote:

for each wks in exApp.worksheets
lstcolumn = exApp.worksheets(wks.name).Range("A65536").end(-4162 ).row

next

--
Regards,
Tom Ogilvy


"sonu" wrote:

I want to control Excel from MS access. I created exapp object.
everyting woks right but I can use this following command. Any help is
really appreciated.

for each wks in exApp.worksheets
lstcolumn = exApp.worksheets(wks.name).Range("A65536").end(xlu p).row

next


  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default end command not working

It is the value for xlup command. my code works with this command
because i have a late binding.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUM command not working Craig Excel Worksheet Functions 1 November 22nd 06 05:09 PM
Working on FindPrevious command in a userform excelnut1954 Excel Programming 3 March 2nd 06 04:32 AM
ChangeLink Command Not Working Dina Excel Programming 8 February 17th 06 03:55 AM
command button isn't working Nydia New Users to Excel 1 April 29th 05 10:31 PM
Kill command not working Larry Wood Excel Programming 1 May 15th 04 02:06 PM


All times are GMT +1. The time now is 05:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"