#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default format move

Can someone write a macro for me that would have cell A1 lookup the value in cell B1 in a table (C1 to G10) and move the found item into A1 (not coping it)

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default format move

like do a copy and paste of the found item
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default format move

Hi
why not use VLOOKUP for this?
See: http://www.mvps.org/dmcritchie/excel/vlookup.htm

--
Regards
Frank Kabel
Frankfurt, Germany


dumb wrote:
Can someone write a macro for me that would have cell A1 lookup the
value in cell B1 in a table (C1 to G10) and move the found item into
A1 (not coping it)?

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default format move

Because I want the formatting to come with? HELP
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default format move

Hi
and what should happen if the values in the lookup range change or the
formating changes from the 'linked' cell?

--
Regards
Frank Kabel
Frankfurt, Germany


dumb wrote:
Because I want the formatting to come with? HELP




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default format move

Hi
not possible as there's no event that would indicate that there was a
change of format. So of course you could copy the value+format then the
macro runs (e.g. manually started). But there's no way to re-start this
macro automatically then the format changes

--
Regards
Frank Kabel
Frankfurt, Germany


dumb wrote:
Beacuse I am trying to copy and paste it would change.


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
How do I move addresses in my contacts into an excel format? tskaar Excel Worksheet Functions 1 April 25th 09 02:03 PM
Format Shape, will not move accordingly, when deleting columns TJ Excel Discussion (Misc queries) 3 June 5th 08 07:13 PM
How can I move spreadsheets to contain same format and spacing pstein69 Excel Discussion (Misc queries) 2 January 10th 07 05:11 AM
Can I format columns to move across a spreadsheet? rubia170 Excel Discussion (Misc queries) 2 October 5th 06 06:28 PM
how do I format a cell reference to move as source changes KGray Excel Worksheet Functions 1 August 13th 05 12:41 AM


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