LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default Dynamic named ranges

Once I define them in the spread sheet part, what are the requirements to be able to
use them in the VBA code? <<

Quite easy. For example, I have a "Settings" worksheet where I have a
number of named ranges so I can set values in the worksheet for the
macro that will be run:

If (Range("URL_Comics1") < 0) Then fMailThem ("Comics 1")
If (Range("URL_Comics2") < 0) Then fMailThem ("Comics 2")
If (Range("URL_Comics3") < 0) Then fMailThem ("Comics 3")
If (Range("URL_Daily") < 0) Then fMailThem ("Daily")
If (Range("URL_DailyTV") < 0) Then fMailThem ("Daily TV")
If (Range("URL_Portfolio") < 0) Then fMailThem ("Portfolio")
If (Range("URL_StockScreen") < 0) Then fMailThem ("Stock Screen")

I'm just using each cell as an indicator (0 or 1) of whether or not to
execute a particular function. Or, I have another section that looks
like this:

If wsG.Range("MSN_FYI") = 1 Then
Call Paste_Table("" & sData, pTicker, ...)
End If
If wsG.Range("MSN_Owners") = 1 Then
Call Paste_Table("" & sData, pTicker, ...)
End If
If wsG.Range("MSN_Analysts") = 1 Then
Call Paste_Table("" & sData, pTicker, ...)
End If
If wsG.Range("MSN_Highlights") = 1 Then
Call Paste_Table("" & sData, pTicker, ...)
End If

 
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
Dynamic Named Ranges - is this possible? Code Numpty Excel Worksheet Functions 2 March 10th 10 04:01 PM
Dynamic Named Ranges CellShocked Excel Worksheet Functions 3 October 31st 09 05:30 AM
Dynamic Named Ranges SJT Excel Discussion (Misc queries) 4 June 9th 06 11:13 PM
Dynamic Named Ranges [email protected] Charts and Charting in Excel 0 March 9th 06 03:09 PM
Dynamic Named Ranges clane Excel Discussion (Misc queries) 5 October 13th 05 03:26 PM


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