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 - Drop down; list range

Hi,

I have problems when I'm trying to define range of the list where fro
drop down -menu takes its values.

The area is variable and actually it is the problem. Here is an exampl
which might help you to understand my problem. The bolded area is no
working. On the other hand it's not giving any error reports nor.

n = Range("AJ1").Value

ActiveSheet.Shapes("Drop Down 18").Select
With Selection
.ListFillRange = *"$AH$1:$AI$" & CStr(n) *
.LinkedCell = "$AJ$2"
.DropDownLines = 10
.Display3DShading = False
End With


So if somebody knows how to manage with this problem I would be ver
thankful.


-Tims

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default VBA - Drop down; list range

There should be a dot at the start of each line in the With...End With
section:

With Selection
.ListFillRange = "$AH$1:$AI$" & CStr(n)
.LinkedCell = "$AJ$2"
.DropDownLines = 10
.Display3DShading = False
End With


Timse < wrote:
Hi,

I have problems when I'm trying to define range of the list where from
drop down -menu takes its values.

The area is variable and actually it is the problem. Here is an example
which might help you to understand my problem. The bolded area is not
working. On the other hand it's not giving any error reports nor.

n = Range("AJ1").Value

ActiveSheet.Shapes("Drop Down 18").Select
With Selection
ListFillRange = *"$AH$1:$AI$" & CStr(n) *
LinkedCell = "$AJ$2"
DropDownLines = 10
Display3DShading = False
End With


So if somebody knows how to manage with this problem I would be very
thankful.


-Timse


---
Message posted from http://www.ExcelForum.com/



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
extend the range of cells for a drop down list Marge Excel Worksheet Functions 9 April 4th 23 10:46 AM
Protect Drop-down list from range of cells JF Excel Worksheet Functions 3 April 1st 08 07:58 PM
select range from drop down list LDP Analyst[_2_] Charts and Charting in Excel 0 January 29th 08 08:38 PM
drop-down List range define vassilis Excel Discussion (Misc queries) 4 December 17th 06 07:26 PM
input range in drop down list Otto Excel Discussion (Misc queries) 3 July 27th 05 09:09 PM


All times are GMT +1. The time now is 12:31 AM.

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"