View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] feirhelen@gmail.com is offline
external usenet poster
 
Posts: 2
Default Replace misc character with previous sheet name

Hi,

I want to replace the # character with ='previoussheetname'!

so #D55 becomes ='PreviousSheet'!D55

Does anyone know how (if) I can make this work?

Cells.Replace What:="#",
Replacement:="='"&Application.Caller.Worksheet.Pre vious.Name&"'!",
LookAt:=xlPart _
, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False,
_
ReplaceFormat:=False


Thanks!
Helen