#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default GOTO with Macros

Ineed to use the GOTO instruction, but the name to put into the instruction
comes from a resulto of a concatenate function in one cell. Ejem: A1:"HR"
B1:"NOV", C1:"HRNOV"with a concatenate function.
After when I run de Macro I need to use this text "HRNOV" to put it into de
GOTO excel facility.
I don't know how to do this, because in the Macro always keep the first text
that I use when recorded the Macro.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27,285
Default GOTO with Macros

Application.Goto Range(Worksheets("Sheet1").Range("C1")), True

assume HRNOV is a defined range on the worksheet.

and HRNOV appears in C1 of sheet1. If the code is in a sheet module and
HRNOV is not on that sheet, you would need to qualify the first Range with
the sheet name.

--
Regards,
Tom Ogilvy

"PBallia" wrote in message
...
Ineed to use the GOTO instruction, but the name to put into the
instruction
comes from a resulto of a concatenate function in one cell. Ejem: A1:"HR"
B1:"NOV", C1:"HRNOV"with a concatenate function.
After when I run de Macro I need to use this text "HRNOV" to put it into
de
GOTO excel facility.
I don't know how to do this, because in the Macro always keep the first
text
that I use when recorded the Macro.



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
Hide Macro's in Toolbar / Macro's list sparx Excel Discussion (Misc queries) 2 May 6th 06 08:53 PM
how do I run excel 4.0 macros on excel 2000 RodolfoDallas Excel Discussion (Misc queries) 1 March 12th 06 03:14 AM
Excel crashes while opening excel file imbeddied with macros ct2147 Excel Discussion (Misc queries) 0 December 30th 05 09:05 PM
Enabling macros Peter M Excel Discussion (Misc queries) 3 February 7th 05 10:57 PM
Transferring toolbars and macros to other computers Darrell Excel Discussion (Misc queries) 1 January 19th 05 12:21 AM


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