Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default VBA 2 dimensional defined name access

I have multiple sheets in our project. Sheet1 contains the interface
and Sheet2 contains a Defined range ("Stuff") that is 10 columns wide
x 25 rows deep. In sheet1's VBA code Im trying to get the specific
element out of "Stuff" based on user input into sheet1. Example if a
user chooses 3 for the first choice and 11 for the second choice I
want element in column 3 row 11 to be returned.

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default VBA 2 dimensional defined name access

Admin,

myRow = 11
myCol = 3
Msgbox Worksheets("Sheet2").Range("Stuff").Cells(myRow,my Col).Value

HTH,
Bernie
MS Excel MVP

"Network Admin" wrote in message
om...
I have multiple sheets in our project. Sheet1 contains the interface
and Sheet2 contains a Defined range ("Stuff") that is 10 columns wide
x 25 rows deep. In sheet1's VBA code Im trying to get the specific
element out of "Stuff" based on user input into sheet1. Example if a
user chooses 3 for the first choice and 11 for the second choice I
want element in column 3 row 11 to be returned.

thanks



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
Run-time error '50290': Application-defined or object-defined erro Macro button Excel Discussion (Misc queries) 1 March 12th 09 10:59 AM
Transposing from two dimensional to one dimensional VickiMc Excel Worksheet Functions 3 July 17th 08 09:00 AM
"User-defined type not defined" message in Excel RW1946 Excel Discussion (Misc queries) 0 August 31st 05 12:14 PM
Word.Document - user defined type not defined jowatkins[_7_] Excel Programming 0 January 20th 04 08:46 AM
Application-defined or object-defined error Sharon[_5_] Excel Programming 2 October 24th 03 03:49 PM


All times are GMT +1. The time now is 02:07 PM.

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"