Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Changing Cell Values

I have a spreadsheet with some non-contiguous cells that have dropdown
validation lists. I am trying to make a VBA routine to reset all these cells
to a default value. The cells are all part of a named range "Fablist" for
easy selection but I am having trouble finding the method to set the value in
all these cells to a specific fixed value "Choose Fab". This value is also in
the validation list. Can anyone give me a simple way to set these values?
Thanks in advance,
RD Wirr
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Changing Cell Values

Dim FabCell as Range

For Each FabCell in Range("Fablist").Cells
FabCell.Value = "Choose Fab"
Next FabCell

--
- K Dales


"RD Wirr" wrote:

I have a spreadsheet with some non-contiguous cells that have dropdown
validation lists. I am trying to make a VBA routine to reset all these cells
to a default value. The cells are all part of a named range "Fablist" for
easy selection but I am having trouble finding the method to set the value in
all these cells to a specific fixed value "Choose Fab". This value is also in
the validation list. Can anyone give me a simple way to set these values?
Thanks in advance,
RD Wirr

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Changing Cell Values

Hello K Dales,
Thanks for your help. I tried this routine you gave me stand alone (with
EndSub appended) but it generates an error
Run-time error '1004':
Method 'Range' of object '_Global' failed

Do you have an idea of how to get around this?

Thanks again for your help
RD Wirr

"K Dales" wrote:

Dim FabCell as Range

For Each FabCell in Range("Fablist").Cells
FabCell.Value = "Choose Fab"
Next FabCell

--
- K Dales


"RD Wirr" wrote:

I have a spreadsheet with some non-contiguous cells that have dropdown
validation lists. I am trying to make a VBA routine to reset all these cells
to a default value. The cells are all part of a named range "Fablist" for
easy selection but I am having trouble finding the method to set the value in
all these cells to a specific fixed value "Choose Fab". This value is also in
the validation list. Can anyone give me a simple way to set these values?
Thanks in advance,
RD Wirr

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Changing Cell Values

Oops! Sorry for the last posting. I figured it out...an error in my spelling.
Works like a charm now.
Thanks again,
RD Wirr


"K Dales" wrote:

Dim FabCell as Range

For Each FabCell in Range("Fablist").Cells
FabCell.Value = "Choose Fab"
Next FabCell

--
- K Dales


"RD Wirr" wrote:

I have a spreadsheet with some non-contiguous cells that have dropdown
validation lists. I am trying to make a VBA routine to reset all these cells
to a default value. The cells are all part of a named range "Fablist" for
easy selection but I am having trouble finding the method to set the value in
all these cells to a specific fixed value "Choose Fab". This value is also in
the validation list. Can anyone give me a simple way to set these values?
Thanks in advance,
RD Wirr

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
changing cell values jamie&slings Excel Discussion (Misc queries) 1 May 3rd 06 01:29 AM
changing cell values from within UDF [email protected] Excel Programming 3 October 18th 05 03:04 PM
Changing cell values JulieD Excel Programming 4 April 13th 05 05:48 PM
Changing cell values Don Guillett[_4_] Excel Programming 0 April 13th 05 05:08 PM
Changing Values In A Cell RAYMOND KELLY Excel Programming 5 June 25th 04 06:01 PM


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