Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Excel -Paste Special


  • Please log in to reply

#1
hglover

hglover

    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

Advertisements


#2
dsm

dsm

    Member

  • Member
  • PipPip
  • 98 posts
hglover,
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


regards
dsm

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