Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Copying cell menu contents

I'm populating a spreadsheet from a template using Access VBA. A cell
in row 3 contains a pulldown static menu of selection items. I need
to copy these cell menu options to each new row of data copied to the
spreadsheet.

If I use wks.Cells(iRow, 22) = wks.Cells(3, 22) then only the cell
contents (not the menu options) get copied.

If I use wks.Cells(iRow, 22).Formula = wks.Cells(3, 22).Formula then
nothing get copied.

Thanks for your help!

Kevin

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Copying cell menu contents

You're saying that you have a drop down list in an Excel worksheet and you
want to get its members listed? There are at least three ways to put a drop
down on a sheet: Data Validation, a Forms toolbar combobox and Control
Toolbox combobox. Which one are you using?

--
Jim
"kevinlcarlson" wrote in message
oups.com...
| I'm populating a spreadsheet from a template using Access VBA. A cell
| in row 3 contains a pulldown static menu of selection items. I need
| to copy these cell menu options to each new row of data copied to the
| spreadsheet.
|
| If I use wks.Cells(iRow, 22) = wks.Cells(3, 22) then only the cell
| contents (not the menu options) get copied.
|
| If I use wks.Cells(iRow, 22).Formula = wks.Cells(3, 22).Formula then
| nothing get copied.
|
| Thanks for your help!
|
| Kevin
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Copying cell menu contents

Basically, I want to limit the contents of a specific cell to items
from a static menu list within that cell. This has been created in
Row 3, and I want to re-create this same cell menu list for each
additional row added programmatically.
Unfortunately, the cell menu contents seem to be neither simple text
nor a formula. How, then, does one copy this menu to another cell?


On May 16, 1:22 pm, "Jim Rech" wrote:
You're saying that you have a drop down list in an Excel worksheet and you
want to get its members listed? There are at least three ways to put a drop
down on a sheet: Data Validation, a Forms toolbar combobox and Control
Toolbox combobox. Which one are you using?

--
Jim"kevinlcarlson" wrote in message

oups.com...
| I'm populating a spreadsheet from a template using Access VBA. A cell
| in row 3 contains a pulldown static menu of selection items. I need
| to copy these cell menu options to each new row of data copied to the
| spreadsheet.
|
| If I use wks.Cells(iRow, 22) = wks.Cells(3, 22) then only the cell
| contents (not the menu options) get copied.
|
| If I use wks.Cells(iRow, 22).Formula = wks.Cells(3, 22).Formula then
| nothing get copied.
|
| Thanks for your help!
|
| Kevin
|



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Copying cell menu contents

Sorry but Excel does not have a 'static menu list' feature. I asked you how
the 'list' was created and you just restated what you posted before.

--
Jim
"kevinlcarlson" wrote in message
ups.com...
| Basically, I want to limit the contents of a specific cell to items
| from a static menu list within that cell. This has been created in
| Row 3, and I want to re-create this same cell menu list for each
| additional row added programmatically.
| Unfortunately, the cell menu contents seem to be neither simple text
| nor a formula. How, then, does one copy this menu to another cell?
|
|
| On May 16, 1:22 pm, "Jim Rech" wrote:
| You're saying that you have a drop down list in an Excel worksheet and
you
| want to get its members listed? There are at least three ways to put a
drop
| down on a sheet: Data Validation, a Forms toolbar combobox and Control
| Toolbox combobox. Which one are you using?
|
| --
| Jim"kevinlcarlson" wrote in message
|
| oups.com...
| | I'm populating a spreadsheet from a template using Access VBA. A cell
| | in row 3 contains a pulldown static menu of selection items. I need
| | to copy these cell menu options to each new row of data copied to the
| | spreadsheet.
| |
| | If I use wks.Cells(iRow, 22) = wks.Cells(3, 22) then only the cell
| | contents (not the menu options) get copied.
| |
| | If I use wks.Cells(iRow, 22).Formula = wks.Cells(3, 22).Formula then
| | nothing get copied.
| |
| | Thanks for your help!
| |
| | Kevin
| |
|
|


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Copying cell menu contents

Sorry if my question was unclear. This would be the menu created by
selecting Data / Validation / Settings / Allow: List and specifying a
cell range of valid values. I want to create this functionality for a
specific column in every new row added using VBA code. Simply copying
cell contents or formulas does not accomplish this...

Thanks,
Kevin


On May 17, 6:42 am, "Jim Rech" wrote:
Sorry but Excel does not have a 'static menu list' feature. I asked you how
the 'list' was created and you just restated what you posted before.



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
If Statement and copying all of cell contents. andrewm Excel Worksheet Functions 0 June 29th 05 04:37 AM
Copying and pasting cell contents Gazza Excel Programming 2 June 1st 05 05:04 PM
Copying cell contents between worksheets Stuart[_17_] Excel Programming 1 June 29th 04 05:02 PM
Copying Cell Contents throughout spreadsheet kaytee978 Excel Programming 3 June 2nd 04 09:12 PM
Copying cell contents to add to existing contents in another cell Dean Sawas Excel Programming 3 April 2nd 04 09:00 PM


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