Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copying text via linked cell from combo box to macro code


Bearing in mind that I am certainly no more than intermediate leve
Excel user, I wish to run a macro in the following way:

a combo box has a linked cell, the user selects from combo box and th
linked cell then contains text. As a macro (A), I copy this text int
the code of another macro (B), and still in macro (A) I then run macr
(B), reorganising my spreadsheet in the desired fashion. Also in A,
return macro (B) to its initial state, allowing macro A to run again.

When I actually try to do this, I either have trouble pasting th
user's choice, the paste is there but inactive in the right clic
department, or I get run time errors, with yellow highlighting or re
text in the code of macro A.

The macro code seems to use a "with...end with" reference type routin
which is unfamiliar to me.

I perhaps shouldn't be using a combo box, is there an alternative ? Th
nearest analogy to it working I can think of is a user searching on
website from a list of options. Select a, b, c, or d and the compute
returns stuff relevant to a, b, c, or d

--
pagelocato
-----------------------------------------------------------------------
pagelocator's Profile: http://www.excelforum.com/member.php...fo&userid=1650
View this thread: http://www.excelforum.com/showthread.php?threadid=30432

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
Macro - Fixed text code needs replacing with variable text steven.holloway Excel Discussion (Misc queries) 3 July 22nd 08 03:57 PM
forcing excel to update the Cell Link when copying Combo Boxes Baraki0568 Excel Worksheet Functions 0 September 13th 06 04:16 AM
Macro linked to text or an object areaume Excel Discussion (Misc queries) 1 May 15th 06 08:15 PM
Copying linked cell references. Shams Excel Worksheet Functions 0 February 3rd 05 01:53 PM
Copying/moving code in a macro [email protected] Excel Programming 0 September 18th 03 12:12 AM


All times are GMT +1. The time now is 07:15 AM.

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"