Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Mathias
 
Posts: n/a
Default How to preserve formatting with vlookup

Hi!
I use vlookup to fetch text from cells on a separate sheet and it works just
fine. The problem though is that I want to get the format of the fetched text
also e.g. If the text in all cells is blue on sheet2 and I want to fetch it
with vlookup to sheet1, then I only get the text and the text is not blue!
The same thing is if the text is in italics, then vlookup stills return the
text i normal font. Is there a way to make vlookup return the format of the
fetched cell??
  #3   Report Post  
Posted to microsoft.public.excel.misc
Mathias
 
Posts: n/a
Default How to preserve formatting with vlookup

Hello again!
Thanks for your reply!

Another problem occured when I finally solved the problem namely that when I
copy text in a cell that has been formatted it looses it's formatting if you
paste it in a cell that has been merged! Is there a workaround for that? I've
solved the latter problem also, simply by implementing my own
vlookup-function and then merge the cells after I paste the values! Kinda
complex problem though, because I also want to adjust the rowheight in the
merged cells, so all text is visible...

"Don Guillett" wrote:

try

Sub findwithformat()
With Sheets("sheet5").Columns(1)
x = .Find("xxxx").Address
..Range(x).Copy
Sheets("sheet9").Range("h1") _
..PasteSpecial Paste:=xlPasteAll
End With
End Sub


--
Don Guillett
SalesAid Software

"Mathias" wrote in message
...
Hi!
I use vlookup to fetch text from cells on a separate sheet and it works
just
fine. The problem though is that I want to get the format of the fetched
text
also e.g. If the text in all cells is blue on sheet2 and I want to fetch
it
with vlookup to sheet1, then I only get the text and the text is not blue!
The same thing is if the text is in italics, then vlookup stills return
the
text i normal font. Is there a way to make vlookup return the format of
the
fetched cell??




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
Conditional Formatting Error ddate Excel Worksheet Functions 0 May 5th 05 09:00 PM
format changes on pivot table although preserve formatting is che. Aannd Excel Discussion (Misc queries) 1 April 20th 05 03:02 PM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM
time formatting and time categorizing (vlookup or data validation) MarianneR Excel Worksheet Functions 4 November 18th 04 03:24 PM
time formatting and time categorizing (vlookup or data validation) MarianneR Excel Worksheet Functions 0 November 18th 04 03:13 PM


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