Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

Excel -Paste Special

  • Please log in to reply



    New Member

  • Member
  • Pip
  • 1 posts
:tazz: Does anyone know how to copy data via 1 excel workbook into a new one... keeping all the formulas and formats; while replacing the original data values with zero's? This is for a payroll related file, I need to create a new file for the upcoming budget period... I will not have major changes to workbook... The data values will change!
  • 0





  • Member
  • PipPip
  • 98 posts
I think the only way you can acheive the desired result is with a customised script.
I have written the attached VBA script that could be used for the purpose.

If you have a file named BudgetDec.xls simply save as BudgetJan.xls
Open BudgetJan.xls
Use Alt+F11 or from the menu... Tools > Macro > Visual Basic Editor to open the VBA Editor
from the menu... Insert > Module
Double Click the last module
Copy the contents of the attached txt file into the last module
Go to the worksheet to be cleared
from the menu... Tools > Macro > Macros > MacForHglover > Run


Attached Files

  • 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP