Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default How to use VBA to copy selected data from one worksheet to another

I have successfully used the "IF" formula but need to expand beyond the
number of allowable nested arguments. The "LOOKUP" formula won't work because
I cannot ensure the user selections will be sorted. I've tried using "IFELSE"
in VBA but I don't understand how to properly write the conditions and the
only examples I can find aren't helpful.
Here is the scenario I'm working with.

I have 2 worksheets; InputForm and Formulas.
Range B14:b25 in the InputForm worksheet are drop down lists that deliver a
value in the corresponding range c14:c25.
Cells M1:AC1 in the Formulas worksheet are the same as the drop down list in
the InputForm worksheet. I need to populate cells M2:AC2 with the data from
InputForm C14:c25 based on user selection.
90% of the time there will be several cells left blank in InputForm b14:c25
and I would like to return a "0" in Formulas("M2:AC2") if an operation
isn't selected.

thank you,
dhunter43
The Performance Advantage, LLC
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 791
Default How to use VBA to copy selected data from one worksheet to another

I think you can solve your problem without any code, if I understand it
correctly, You want a 0 in the range(MA2:AC2) when the user does not make a
selection in any of the dropdown boxes. So rather than directly sending the
result of their choices to the above mentioned range, send it to a "pivotal
range" for example (AC2:AU2) and in (MA:AC2) you setup a formula that reads
If(MA2="",0,MA2) and you drag it accross.

Mike Arch.

Please rate this posting if helpful.



I have successfully used the "IF" formula but need to expand beyond the
number of allowable nested arguments. The "LOOKUP" formula won't work because
I cannot ensure the user selections will be sorted. I've tried using "IFELSE"
in VBA but I don't understand how to properly write the conditions and the
only examples I can find aren't helpful.
Here is the scenario I'm working with.

I have 2 worksheets; InputForm and Formulas.
Range B14:b25 in the InputForm worksheet are drop down lists that deliver a
value in the corresponding range c14:c25.
Cells M1:AC1 in the Formulas worksheet are the same as the drop down list in
the InputForm worksheet. I need to populate cells M2:AC2 with the data from
InputForm C14:c25 based on user selection.
90% of the time there will be several cells left blank in InputForm b14:c25
and I would like to return a "0" in Formulas("M2:AC2") if an operation
isn't selected.

thank you,
dhunter43
The Performance Advantage, LLC

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default How to use VBA to copy selected data from one worksheet to ano

I wish it were that simple. Based on user selections I need to transfer data
from 'InputForm' to 'Formulas'. The user has 12 opportunities to make
selections from the same drop down list. Based on their selections I need to
transfer the data from 'InputForm' range c14:c25 to 'Formulas' range m2:ac2
and I want a zero to appear in range m2:ac2 that wern't selected on the
'InputForm' worksheet.

I hope that wasn't too confusing.
--
dhunter43
The Performance Advantage, LLC


"Michael" wrote:

I think you can solve your problem without any code, if I understand it
correctly, You want a 0 in the range(MA2:AC2) when the user does not make a
selection in any of the dropdown boxes. So rather than directly sending the
result of their choices to the above mentioned range, send it to a "pivotal
range" for example (AC2:AU2) and in (MA:AC2) you setup a formula that reads
If(MA2="",0,MA2) and you drag it accross.

Mike Arch.

Please rate this posting if helpful.



I have successfully used the "IF" formula but need to expand beyond the
number of allowable nested arguments. The "LOOKUP" formula won't work because
I cannot ensure the user selections will be sorted. I've tried using "IFELSE"
in VBA but I don't understand how to properly write the conditions and the
only examples I can find aren't helpful.
Here is the scenario I'm working with.

I have 2 worksheets; InputForm and Formulas.
Range B14:b25 in the InputForm worksheet are drop down lists that deliver a
value in the corresponding range c14:c25.
Cells M1:AC1 in the Formulas worksheet are the same as the drop down list in
the InputForm worksheet. I need to populate cells M2:AC2 with the data from
InputForm C14:c25 based on user selection.
90% of the time there will be several cells left blank in InputForm b14:c25
and I would like to return a "0" in Formulas("M2:AC2") if an operation
isn't selected.

thank you,
dhunter43
The Performance Advantage, LLC

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
copy selected rows to second worksheet (NOT Cut + Paste) gyrra New Users to Excel 2 June 4th 10 09:05 PM
Copy or Link Selected Worksheet Steve Excel Worksheet Functions 1 March 19th 08 11:40 PM
copy selected rows to a new worksheet David Gerstman Excel Programming 2 February 5th 07 04:01 PM
Automatically copy selected information from one worksheet to anot SM1 Excel Discussion (Misc queries) 1 December 21st 06 01:02 AM
Is it possible to copy only selected items to another worksheet... HEATHERCOX Excel Worksheet Functions 2 March 1st 05 01:21 PM


All times are GMT +1. The time now is 09:15 PM.

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"