Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2006

Tip: Looking for answers? Try searching our database.

Copying a formulas answers and not its calculation in VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kirby_t07 - 26 Mar 2006 12:52 GMT
I am creating a spreadsheet using matrices that allows you to add
pre-defined transformations to a triangle. I have a problem with
circular references because my macros have to copy and paste a lot of
calculations. for example the 'current coordinates of image' is a
formula mixing the original coordinates of the image with the current
matrix. Unfortunately this means that if i try and add more than one
transformation (which means the current cooridnates must be copied to
the original coordinates) i get the current coordinates trying to
divide by themselves.

Essentially what i need is a way of making the spreadsheet only copy
the answer to the formula not the calculation. I dont need it to be
live updated. is there a way of achieving this? I am new to excel and
VBA and am creating this spreadsheet for a school project. I can email,
post screenshots and provide more information if anyone can help me in
the slightest, i hope it is somethign obvious that im just missing.
Thanking you in advance.

Signature

kirby_t07

Ardus Petus - 26 Mar 2006 13:04 GMT
Please mail (mailto:ardus.petus@laposte.net) your workbook with text
explaining expected results

I hope I can help

--
AP

> I am creating a spreadsheet using matrices that allows you to add
> pre-defined transformations to a triangle. I have a problem with
[quoted text clipped - 13 lines]
> the slightest, i hope it is somethign obvious that im just missing.
> Thanking you in advance.
kirby_t07 - 28 Mar 2006 09:19 GMT
Have sent the email, apologize for taking so long, wasn't aware anyone
had replied :rolleyes: . Hope you can help!

Signature

kirby_t07

Ardus Petus - 28 Mar 2006 13:11 GMT
Here's your workbook with a few modifications: http://cjoint.com/?dCokqBCQwv

I felt free to revise the syntax of your macros to make them clearer and
more concise.

HTH
--
AP

> Have sent the email, apologize for taking so long, wasn't aware anyone
> had replied :rolleyes: . Hope you can help!
Andrew Taylor - 26 Mar 2006 16:30 GMT
There's an option in Excel to paste values only (or other things):
  Edit/Paste Special/Values

You can emulate this in VBA with

  TargetRange.PasteSpecial XlPasteType:=xlPasteValues

> I am creating a spreadsheet using matrices that allows you to add
> pre-defined transformations to a triangle. I have a problem with
[quoted text clipped - 19 lines]
> kirby_t07's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=32835
> View this thread: http://www.excelforum.com/showthread.php?threadid=526323
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.