Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default two very simple questions

1. How to get the row number if I'm in Target
2. How to tell Vb if is error then goto next step in the macro
TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default two very simple questions

filo666,

1) Target.Row will return the first row of target
2)
On Error Resume Next
'code to skip
On Error Goto 0

hth,

Doug


"filo666" wrote in message
...
1. How to get the row number if I'm in Target
2. How to tell Vb if is error then goto next step in the macro
TIA



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default two very simple questions

Hi Filo666,

1. How to get the row number if I'm in Target


MsgBox Target.Row

2. How to tell Vb if is error then goto next step in the macro


On Error Resume Next

'Youe contentious code line

On Error GoTo 0 ' Restore default error handling

---
Regards,
Norman


"filo666" wrote in message
...
1. How to get the row number if I'm in Target
2. How to tell Vb if is error then goto next step in the macro
TIA



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 698
Default two very simple questions

Hi Flo,

Dim i As Integer
i = Target.Row

On Error Resume Next

HTH
Regards,
Howard


"filo666" wrote in message
...
1. How to get the row number if I'm in Target
2. How to tell Vb if is error then goto next step in the macro
TIA



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default two very simple questions


1) Target.Row
2) On Error Resume Nex

--
Brassma
-----------------------------------------------------------------------
Brassman's Profile: http://www.excelforum.com/member.php...fo&userid=1329
View this thread: http://www.excelforum.com/showthread.php?threadid=49606



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default two very simple questions


Brassman wrote:
1) Target.Row
2) On Error Resume Next


--
Brassman
------------------------------------------------------------------------
Brassman's Profile: http://www.excelforum.com/member.php...o&userid=13290
View this thread: http://www.excelforum.com/showthread...hreadid=496069


I was trying to achieve the result in Item 2 above with the Solver
module in VBA. However, I am not able to stop the Solver from
displaying the Error handling Dialog box "Show trial solution" . I
tried Placing the command "On Error Resume Next" at different places.
Any suggestions?
thanks in advance
googlesury

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default two very simple questions

Read through this and see if it answers your question:

http://support.microsoft.com/default...b;en-us;843304
How to create Visual Basic macros by using Excel Solver in Excel 97

--
Regards,
Tom Ogilvy


"googlesury" wrote in message
ups.com...

Brassman wrote:
1) Target.Row
2) On Error Resume Next


--
Brassman
------------------------------------------------------------------------
Brassman's Profile:

http://www.excelforum.com/member.php...o&userid=13290
View this thread:

http://www.excelforum.com/showthread...hreadid=496069

I was trying to achieve the result in Item 2 above with the Solver
module in VBA. However, I am not able to stop the Solver from
displaying the Error handling Dialog box "Show trial solution" . I
tried Placing the command "On Error Resume Next" at different places.
Any suggestions?
thanks in advance
googlesury



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default two very simple questions

I know how to accomplish number 1: Range(target.address).Row
please just answer number 2.
"filo666" wrote:

1. How to get the row number if I'm in Target
2. How to tell Vb if is error then goto next step in the macro and also if is error goto Next (of a loop)
TIA

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default two very simple questions

On Mon, 26 Dec 2005 13:18:01 -0800, "filo666"
wrote:


I will point you to the relevant topics in HELP, so you can also learn how to
find answers for other questions:

1. How to get the row number if I'm in Target


Check HELP for the Row property.

2. How to tell Vb if is error then goto next step in the macro
TIA


Look at HELP for the RESUME statement.
--ron
  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default two very simple questions

thanks you all

"Ron Rosenfeld" wrote:

On Mon, 26 Dec 2005 13:18:01 -0800, "filo666"
wrote:


I will point you to the relevant topics in HELP, so you can also learn how to
find answers for other questions:

1. How to get the row number if I'm in Target


Check HELP for the Row property.

2. How to tell Vb if is error then goto next step in the macro
TIA


Look at HELP for the RESUME statement.
--ron



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
Questions should be simple please help babiigirl Excel Worksheet Functions 3 June 14th 06 07:24 PM
VB simple Questions Ch Excel Programming 1 August 6th 05 01:39 PM
VB simple questions Ch Excel Programming 1 August 5th 05 06:18 AM
Two (probably) simple questions, but not for me.... Candee[_34_] Excel Programming 1 June 14th 05 06:51 PM
Several simple questions Stuart[_5_] Excel Programming 1 September 14th 03 08:58 PM


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