Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combo box copy and paste

Hi all,

Quick question. I have a combo box i want to use to copy columns fro
one sheet to another. The criteria is:

704 - Copy column a sheet1 to column D sheet2
706 - Copy column b sheet1 to column D sheet2
708 - Copy column c sheet1 to column D sheet2
710 - Copy column d sheet1 to column D sheet2

704,706,etc is the fill range. Can someone please provide the code t
copy the columns if selected. Note also there is protection....

Thankn you all in advance!!

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combo box copy and paste

Hi Dave,

Thanks for your assistance. I got it to copy once but not again after
The selelctions i listed are the only ones and im not sure by what yo
mean whatever is in the combo box. Can you set up completely based o
the selections i hav given. Will protection of cells/sheet be
problem.

Thank you in advance Dave.

Cheers!!!!

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Combo box copy and paste

Your combobox gets populated some way.

Since you didn't say where the combobox is (on a worksheet or a userform??) and
what it's named, I didn't know how to get that value.

maybe...
myVal = "706" 'whatever is in the combobox

becomes
myVal = worksheets("sheet1").combobox1.value



"gavmer <" wrote:

Hi Dave,

Thanks for your assistance. I got it to copy once but not again after.
The selelctions i listed are the only ones and im not sure by what you
mean whatever is in the combo box. Can you set up completely based on
the selections i hav given. Will protection of cells/sheet be a
problem.

Thank you in advance Dave.

Cheers!!!!!

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


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combo box copy and paste

Dave,

Mate, you are spot on. I can thank you enough for your help.

Cheers!!!

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

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
Can't Copy and Paste or Paste Special between Excel Workbooks wllee Excel Discussion (Misc queries) 5 April 29th 23 03:43 AM
Copy, paste without file name referenced after paste AusTexRich Excel Discussion (Misc queries) 6 September 23rd 08 02:57 AM
Copy; Paste; Paste Special are disabled Mack Neff[_3_] Excel Discussion (Misc queries) 0 April 28th 08 06:29 PM
Excel cut/Paste Problem: Year changes after data is copy and paste Asif Excel Discussion (Misc queries) 2 December 9th 05 05:16 PM
I cannot paste from one workbook to another. Copy works, paste do. JimmyMc Excel Discussion (Misc queries) 1 June 10th 05 03:54 PM


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