Results 1 to 14 of 14

Macro to change cell value

Threaded View

  1. #1
    Registered User
    Join Date
    02-01-2013
    Location
    Plymouth, England
    MS-Off Ver
    Excel 2010
    Posts
    7

    Question Macro to change cell value

    Hi.... and help!
    I'm a newbie to the forum and a newbie to VB but picking it up fairly quickly (the simple stuff, at least). I'm having to write some formatting macros at work and am so far doing ok but there's just one step I just can't seem to get as it involves conditionally changing a cell value and then the cell alignment. I've tried various IF functions but have concluded that the only way to do this must be through the macro... here goes....

    I'm using Excel Report Generator to extract data from my database into the Excel template I'm creating the macro for. The sheet that I'm having issues with is because sometimes there will be no data for the period. What my boss wants me to do is set up the macro to include a step where it looks to see if the top row is blank and, if it is, to merge the row (I'm trying to sell 'Center Across Selection' to her) and type 'None' so that the client receiving the report doesn't go looking for data that doesn't exist. Merging has been a nightmare so I've settled for conditionally formatting borders and the whole =IF(..., then "NONE") has left me with a bruise on my forehead from banging it against my desk. Help??


    Thanks so much!
    Attached Files Attached Files
    Last edited by rosellie; 02-21-2013 at 09:48 AM. Reason: changing attachment

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1