Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default [vba] ActiveCell in Online xls document

Hi all,

I made a calculator for a client of mine in a MS Excel Workbook (Office2k)
so far so good ...

Now they want to put the MS Excel file online, as an intranet
application. But then the users get an error message saying:
"Run-time error '91' Object variable or With block variable not set"
on this line of code:
Code:
ActiveCell.Offset(1, 0).Select
Using the Range("A1").Select for example works, but I want to run over
50 cells containing parameters for the calculator.

I should be able to use it like this:
Code:
Dim i
For i=1 to 5
	Range("A" & Cstr(i)).Select
Next 'i
But changing every ActiveCell in my code would be very difficult. Is
there another solution possible?

Thx in advance

-Cassy-
http://users.skynet.be/cassy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default [vba] ActiveCell in Online xls document

ActiveCell is a window property. If no window is visible there is no active
cell. I'm guess that is the reason for the error message. If you cannot
address that then you may have to do some recoding.

Btw, it's usually not necessary to select cells to do something with them.

--
Jim Rech
Excel MVP
"Cassy" wrote in message
...
| Hi all,
|
| I made a calculator for a client of mine in a MS Excel Workbook (Office2k)
| so far so good ...
|
| Now they want to put the MS Excel file online, as an intranet
| application. But then the users get an error message saying:
| "Run-time error '91' Object variable or With block variable not set"
| on this line of code:
|
Code:
| ActiveCell.Offset(1, 0).Select
|
|
| Using the Range("A1").Select for example works, but I want to run over
| 50 cells containing parameters for the calculator.
|
| I should be able to use it like this:
|
Code:
| Dim i
| For i=1 to 5
| Range("A" & Cstr(i)).Select
| Next 'i
|
|
| But changing every ActiveCell in my code would be very difficult. Is
| there another solution possible?
|
| Thx in advance
|
| -Cassy-
| http://users.skynet.be/cassy


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
GET PAID $2000 PER WEEK FROM ONLINE MONEY MAKING PROGRAMME.THEREALPROGRAMME IN ONLINE mark sheder Excel Worksheet Functions 0 October 6th 08 12:01 PM
If activecell.column = variable then activecell,offset (0,1) Battykoda via OfficeKB.com Excel Discussion (Misc queries) 1 October 2nd 07 08:05 PM
Can't open online Help - get "Register for My Office Online" Blue-eyed girl Excel Discussion (Misc queries) 0 April 24th 07 04:04 PM
use of activecell inquirer Excel Programming 8 May 16th 04 06:39 AM
how to set activecell? ljb[_2_] Excel Programming 2 November 18th 03 04:49 PM


All times are GMT +1. The time now is 10:43 AM.

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

About Us

"It's about Microsoft Excel"