Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Syntax error


Hi!

I'm trying to select a cell when an event comes (worksheet activation)

Application.Goto ThisWorkbook.Worksheets("INDICATORS List").Range(N4)

is the line and the error message I get is: "Application-defined o
object-defined error"

Can anyone help me in selecting the "N4" cell from "INDICATORS Lists
when activating another worksheet ?

Thanks in advance,
Chri

--
loopo
-----------------------------------------------------------------------
loopoo's Profile: http://www.excelforum.com/member.php...fo&userid=2879
View this thread: http://www.excelforum.com/showthread.php?threadid=48716

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Syntax error

Hi Chris,

Your syntax works for me, providing the cell reference is enclosed in
quotes:

Application.Goto ThisWorkbook. _
Worksheets("INDICATORS List").Range("N4")


---
Regards,
Norman



"loopoo" wrote in
message ...

Hi!

I'm trying to select a cell when an event comes (worksheet activation)

Application.Goto ThisWorkbook.Worksheets("INDICATORS List").Range(N4)

is the line and the error message I get is: "Application-defined or
object-defined error"

Can anyone help me in selecting the "N4" cell from "INDICATORS Lists"
when activating another worksheet ?

Thanks in advance,
Chris


--
loopoo
------------------------------------------------------------------------
loopoo's Profile:
http://www.excelforum.com/member.php...o&userid=28792
View this thread: http://www.excelforum.com/showthread...hreadid=487163



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Syntax error

I don't know about the rest of the line, but you need quotes around N4 in the
range:

Range("N4")

"loopoo" wrote:


Hi!

I'm trying to select a cell when an event comes (worksheet activation)

Application.Goto ThisWorkbook.Worksheets("INDICATORS List").Range(N4)

is the line and the error message I get is: "Application-defined or
object-defined error"

Can anyone help me in selecting the "N4" cell from "INDICATORS Lists"
when activating another worksheet ?

Thanks in advance,
Chris


--
loopoo
------------------------------------------------------------------------
loopoo's Profile: http://www.excelforum.com/member.php...o&userid=28792
View this thread: http://www.excelforum.com/showthread...hreadid=487163


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Syntax error


Thank you both for your replies.

It's working now.

Chris


--
loopoo
------------------------------------------------------------------------
loopoo's Profile: http://www.excelforum.com/member.php...o&userid=28792
View this thread: http://www.excelforum.com/showthread...hreadid=487163

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
syntax error JT Excel Programming 2 October 7th 05 04:44 PM
variable not declared error & syntax error G. Beard Excel Programming 1 October 6th 05 09:16 PM
Syntax error Q John[_78_] Excel Programming 0 December 22nd 04 10:01 AM
Syntax Error Runtime Error '424' Object Required sjenks183 Excel Programming 1 January 23rd 04 09:25 AM
Where is my syntax error? Mike Excel Programming 2 December 16th 03 10:43 PM


All times are GMT +1. The time now is 01:39 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"